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:
parent
cfe068876e
commit
5d2dcc0c01
1 changed files with 6 additions and 0 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue