aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2010-02-23 14:47:21 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2010-02-24 23:38:07 +0800
commit2424b7418399694e059ea22699de1c0c45dab772 (patch)
treebfecacaf02e515f6edce49d22aa00eef05b0d076 /lib
parent6974d3b41f80e9e43b240d4041dabfd8f80a7a95 (diff)
downloadgsoc2013-epiphany-2424b7418399694e059ea22699de1c0c45dab772.tar.gz
gsoc2013-epiphany-2424b7418399694e059ea22699de1c0c45dab772.tar.zst
gsoc2013-epiphany-2424b7418399694e059ea22699de1c0c45dab772.zip
Always use i18n'd Desktop and Downloads dir names
Otherwise preferences gets confused and also some other parts of our code put files where they shouldn't be. This was causing the default downloads destination to reset everytime the preferences dialog was opened and also causing some downloads (when "Open" is selected) to end up where they shouldn't. Bug #610721
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-file-helpers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index baf8a185a..adddc8412 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -207,7 +207,8 @@ ephy_file_desktop_dir (void)
if (xdg_desktop_dir != NULL)
return g_strdup (xdg_desktop_dir);
- return g_build_filename (g_get_home_dir (), "Desktop", NULL);
+ /* If we don't have XDG user dirs info, return an educated guess. */
+ return g_build_filename (g_get_home_dir (), _("Desktop"), NULL);
}
/**