{
fDefaults = [NSUserDefaults standardUserDefaults];
- fLib = tr_initFull("macosx",
+ fLib = tr_initFull(NULL, /* use default config directory (Application Support) */
+ "macosx",
[fDefaults boolForKey: @"PEXGlobal"],
[fDefaults boolForKey: @"NatTraversal"],
[fDefaults integerForKey: @"BindPort"],
{
bzero( sun, sizeof *sun );
sun->sun_family = AF_LOCAL;
- strlcpy( sun->sun_path, tr_getPrefsDirectory(), sizeof sun->sun_path );
+ strlcpy( sun->sun_path, tr_getDefaultConfigDir(), sizeof sun->sun_path );
strlcat( sun->sun_path, "/socket", sizeof sun->sun_path );
}