aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-03-23 21:23:09 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-03-23 21:23:09 +0800
commit7f4874e7ce21129029ce1e4eb0de5ef238c4ca31 (patch)
tree1310f330991c673819cfe497efb2a1646b417de8 /widgets/misc
parent495f8f8003ac98ab63fa68aa89fbe8668c357320 (diff)
downloadgsoc2013-evolution-7f4874e7ce21129029ce1e4eb0de5ef238c4ca31.tar
gsoc2013-evolution-7f4874e7ce21129029ce1e4eb0de5ef238c4ca31.tar.gz
gsoc2013-evolution-7f4874e7ce21129029ce1e4eb0de5ef238c4ca31.tar.bz2
gsoc2013-evolution-7f4874e7ce21129029ce1e4eb0de5ef238c4ca31.tar.lz
gsoc2013-evolution-7f4874e7ce21129029ce1e4eb0de5ef238c4ca31.tar.xz
gsoc2013-evolution-7f4874e7ce21129029ce1e4eb0de5ef238c4ca31.tar.zst
gsoc2013-evolution-7f4874e7ce21129029ce1e4eb0de5ef238c4ca31.zip
Bug 613639 - Evolution hard codes .gnome2
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-attachment-handler-image.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/widgets/misc/e-attachment-handler-image.c b/widgets/misc/e-attachment-handler-image.c
index 6429eb6b8e..d9d87d991f 100644
--- a/widgets/misc/e-attachment-handler-image.c
+++ b/widgets/misc/e-attachment-handler-image.c
@@ -115,6 +115,7 @@ action_image_set_as_background_cb (GtkAction *action,
EAttachment *attachment;
GFile *destination;
GList *selected;
+ const gchar *override;
gchar *path;
view = e_attachment_handler_get_view (handler);
@@ -123,8 +124,12 @@ action_image_set_as_background_cb (GtkAction *action,
attachment = E_ATTACHMENT (selected->data);
/* Save the image under ~/.gnome2/wallpapers/. */
- path = g_build_filename (
- g_get_home_dir (), ".gnome2", "wallpapers", NULL);
+ override = g_getenv ("GNOME22_USER_DIR");
+ if (override != NULL)
+ path = g_build_filename (override, "wallpapers", NULL);
+ else
+ path = g_build_filename (
+ g_get_home_dir (), ".gnome2", "wallpapers", NULL);
destination = g_file_new_for_path (path);
g_mkdir_with_parents (path, 0755);
g_free (path);