Commit 6a8e406b authored by Bastien Nocera's avatar Bastien Nocera

settings: Allow $HOME to be the Downloads dir

Closes: #67
parent 59d6de7d
Pipeline #208156 passed with stage
in 2 minutes and 1 second
......@@ -484,7 +484,7 @@ lookup_download_dir (void)
char *dir;
special_dir = g_get_user_special_dir (G_USER_DIRECTORY_DOWNLOAD);
if (special_dir != NULL && strcmp (special_dir, g_get_home_dir ()) != 0) {
if (special_dir != NULL) {
g_mkdir_with_parents (special_dir, 0755);
return g_strdup (special_dir);
}
......
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