aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-18 23:12:49 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-18 23:58:19 +0800
commit12d1810be39661750956ec1e041f7f572ea86698 (patch)
tree7fcd704c0b66862efca76886df28e34c0ba75548 /e-util
parent3f1448b0119585493e1d213af9afde5faf50cb2c (diff)
downloadgsoc2013-evolution-12d1810be39661750956ec1e041f7f572ea86698.tar
gsoc2013-evolution-12d1810be39661750956ec1e041f7f572ea86698.tar.gz
gsoc2013-evolution-12d1810be39661750956ec1e041f7f572ea86698.tar.bz2
gsoc2013-evolution-12d1810be39661750956ec1e041f7f572ea86698.tar.lz
gsoc2013-evolution-12d1810be39661750956ec1e041f7f572ea86698.tar.xz
gsoc2013-evolution-12d1810be39661750956ec1e041f7f572ea86698.tar.zst
gsoc2013-evolution-12d1810be39661750956ec1e041f7f572ea86698.zip
Hard-code the directory returned by gnome_user_accels_dir_get().
This drops support for the GNOME22_USER_DIR environment variable, but I don't imagine that's widely used these days anyway.
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-util.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c
index f92869ebaa..b2daca96f9 100644
--- a/e-util/e-util.c
+++ b/e-util/e-util.c
@@ -38,7 +38,6 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <glib/gstdio.h>
-#include <libgnome/gnome-init.h>
#include <camel/camel-url.h>
@@ -85,9 +84,14 @@ e_get_accels_filename (void)
{
static gchar *filename = NULL;
+ /* XXX The directory corresponds to gnome_user_accels_dir_get()
+ * from libgnome. Continue using this location until GNOME
+ * decides on an XDG-compliant location. Perhaps something
+ * like $(XDG_CONFIG_DIR)/accels. */
+
if (G_UNLIKELY (filename == NULL))
filename = g_build_filename (
- gnome_user_dir_get (),
+ g_get_home_dir (), ".gnome2",
"accels", PACKAGE, NULL);
return filename;