generalsettingsview: set default download directory to home

Like records and this also avoids more cyrillics chars (cf
https://bugs.webkit.org/show_bug.cgi?id=184660)

Change-Id: I8deea013992ece7a358c7eff87752ade5486d366
parent 48f422a5
......@@ -243,7 +243,9 @@ general_settings_view_init(GeneralSettingsView *self)
char* download_directory_value;
g_variant_get(download_directory_variant, "&s", &download_directory_value);
std::string default_download_dir = {};
if (auto* directory = g_get_user_special_dir (G_USER_DIRECTORY_DOWNLOAD))
if (auto* directory = g_get_home_dir ())
default_download_dir = directory;
else if (auto* directory = g_get_user_special_dir (G_USER_DIRECTORY_DOWNLOAD))
default_download_dir = directory;
else
default_download_dir = g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment