1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00

(gtk) #685: Use XDG user dir to set download directory

This commit is contained in:
Charles Kerr 2008-02-19 19:22:15 +00:00
parent cfe068876e
commit 5d2dcc0c01

View file

@ -43,7 +43,13 @@ tr_prefs_init_global( void )
pref_int_set_default ( PREF_KEY_UL_LIMIT, 50 );
pref_flag_set_default ( PREF_KEY_OPTIONS_PROMPT, TRUE );
#if GLIB_CHECK_VERSION(2,14,0)
pref_string_set_default ( PREF_KEY_DIR_DEFAULT,
g_get_user_special_dir(
G_USER_DIRECTORY_DOWNLOAD ) );
#else
pref_string_set_default ( PREF_KEY_DIR_DEFAULT, g_get_home_dir() );
#endif
pref_int_set_default ( PREF_KEY_PORT, TR_DEFAULT_PORT );