Changeset 8026 for trunk/gtk/tr-prefs.c


Ignore:
Timestamp:
Mar 5, 2009, 2:40:58 AM (13 years ago)
Author:
charles
Message:

(trunk gtk) #1773: First run - error in Properties

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-prefs.c

    r7952 r8026  
    3434 */
    3535void
    36 tr_prefs_init_global( void )
     36tr_prefs_init_defaults( void )
    3737{
    3838    const char * str;
     
    4343    str = NULL;
    4444    if( !str ) str = g_get_user_special_dir( G_USER_DIRECTORY_DESKTOP );
     45    if( !str ) str = g_get_user_special_dir( G_USER_DIRECTORY_DOWNLOAD );
    4546    if( !str ) str = tr_getDefaultDownloadDir( );
    46     mkdir_p( str, 0777 );
    4747    pref_string_set_default ( PREF_KEY_DIR_WATCH, str );
    4848    pref_flag_set_default   ( PREF_KEY_DIR_WATCH_ENABLED, FALSE );
     
    8080#endif
    8181    if( !str ) str = tr_getDefaultDownloadDir( );
    82     mkdir_p( str, 0777 );
    8382    pref_string_set_default ( TR_PREFS_KEY_DOWNLOAD_DIR, str );
    8483
Note: See TracChangeset for help on using the changeset viewer.