Changeset 7953


Ignore:
Timestamp:
Feb 26, 2009, 6:23:51 PM (13 years ago)
Author:
charles
Message:

(1.5x gtk) #1873: Fallback path for the default download directory could be better

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5x/gtk/tr-prefs.c

    r7821 r7953  
    4444    if( !str ) str = g_get_user_special_dir( G_USER_DIRECTORY_DESKTOP );
    4545    if( !str ) str = tr_getDefaultDownloadDir( );
     46    mkdir_p( str, 0777 );
    4647    pref_string_set_default ( PREF_KEY_DIR_WATCH, str );
    4748    pref_flag_set_default   ( PREF_KEY_DIR_WATCH_ENABLED, FALSE );
     
    7879    if( !str ) str = g_get_user_special_dir( G_USER_DIRECTORY_DOWNLOAD );
    7980#endif
    80     if( !str ) str = g_get_home_dir( );
     81    if( !str ) str = tr_getDefaultDownloadDir( );
     82    mkdir_p( str, 0777 );
    8183    pref_string_set_default ( TR_PREFS_KEY_DOWNLOAD_DIR, str );
    8284
Note: See TracChangeset for help on using the changeset viewer.