summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-08-27 10:25:31 +0200
committerBastien Nocera <hadess@hadess.net>2020-08-27 10:38:59 +0200
commit6a8e406bbe1cbb1a8cc65927ae5dd0143bc6d766 (patch)
tree71d739f53347f65f2f211e1919a514a6f9608c48
parent59d6de7d56254c6546c0f536cd932e50f97134ac (diff)
downloadgnome-bluetooth-6a8e406bbe1cbb1a8cc65927ae5dd0143bc6d766.tar.gz
settings: Allow $HOME to be the Downloads dir
Closes: #67
-rw-r--r--lib/bluetooth-settings-obexpush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bluetooth-settings-obexpush.c b/lib/bluetooth-settings-obexpush.c
index 53ffee72..9ad399ce 100644
--- a/lib/bluetooth-settings-obexpush.c
+++ b/lib/bluetooth-settings-obexpush.c
@@ -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);
}