aboutsummaryrefslogtreecommitdiffstats
path: root/src/prefs-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r--src/prefs-dialog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 883406862..18d4dd1c4 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -1090,6 +1090,12 @@ get_download_button_label ()
downloads_path = g_build_path (g_get_home_dir (), "Desktop",
_("Downloads"), NULL);
+ /* fallback to Home directory */
+ if (key == NULL)
+ {
+ key = g_strdup ("~");
+ }
+
if (g_utf8_collate (key, "~/Desktop") == 0)
{
g_free (key);