[gnome-bluetooth/wip/hadess/downloads-dir] settings: Allow $HOME to be the Downloads dir




commit 9e8c267c9ca48830fb7a7003523307185f278ca3
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]