[evolution] Bug 613639 - Evolution hard codes .gnome2
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 613639 - Evolution hard codes .gnome2
- Date: Tue, 23 Mar 2010 14:23:11 +0000 (UTC)
commit 7f4874e7ce21129029ce1e4eb0de5ef238c4ca31
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Mar 23 09:23:09 2010 -0400
Bug 613639 - Evolution hard codes .gnome2
widgets/misc/e-attachment-handler-image.c | 9 +++++++--
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 6429eb6..d9d87d9 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]