Fallback to $HOME/Downloads for dcc_dir

This commit is contained in:
TingPing 2013-02-18 00:30:57 -05:00
parent 3915abc91e
commit bcb2107bb1

View File

@ -754,7 +754,10 @@ load_config (void)
snprintf (prefs.hex_dcc_dir, sizeof (prefs.hex_dcc_dir), "%s\\Downloads", out);
}
#else
strcpy (prefs.hex_dcc_dir, g_get_user_special_dir(G_USER_DIRECTORY_DOWNLOAD));
if (g_get_user_special_dir(G_USER_DIRECTORY_DOWNLOAD))
strcpy (prefs.hex_dcc_dir, g_get_user_special_dir(G_USER_DIRECTORY_DOWNLOAD));
else
strcpy (prefs.hex_dcc_dir, g_build_filename (g_get_home_dir (), "Downloads", NULL));
#endif
strcpy (prefs.hex_dnsprogram, "host");
strcpy (prefs.hex_gui_ulist_doubleclick, "QUERY %s");