[gnome-bluetooth/wip/hadess/downloads-dir: 2/2] settings: Allow $HOME to be the Downloads dir
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/downloads-dir: 2/2] settings: Allow $HOME to be the Downloads dir
- Date: Thu, 27 Aug 2020 08:40:22 +0000 (UTC)
commit 6a8e406bbe1cbb1a8cc65927ae5dd0143bc6d766
Author: Bastien Nocera <hadess hadess net>
Date: Thu Aug 27 10:25:31 2020 +0200
settings: Allow $HOME to be the Downloads dir
Closes: #67
lib/bluetooth-settings-obexpush.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]