diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-03-25 23:41:55 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-03-25 23:41:55 +0800 |
commit | 15b5f206e0add6fb3b1b34aaacb104e7d3c824f3 (patch) | |
tree | 4685eb6a6bd3e9e119c7192be08de9fe7e4a40d6 | |
parent | c8be2c5fe1a1dc943bc293bb269da116a7f237ad (diff) | |
download | gsoc2013-evolution-15b5f206e0add6fb3b1b34aaacb104e7d3c824f3.tar gsoc2013-evolution-15b5f206e0add6fb3b1b34aaacb104e7d3c824f3.tar.gz gsoc2013-evolution-15b5f206e0add6fb3b1b34aaacb104e7d3c824f3.tar.bz2 gsoc2013-evolution-15b5f206e0add6fb3b1b34aaacb104e7d3c824f3.tar.lz gsoc2013-evolution-15b5f206e0add6fb3b1b34aaacb104e7d3c824f3.tar.xz gsoc2013-evolution-15b5f206e0add6fb3b1b34aaacb104e7d3c824f3.tar.zst gsoc2013-evolution-15b5f206e0add6fb3b1b34aaacb104e7d3c824f3.zip |
Change the accelerator map file location.
From: $HOME/.gnome2/accels/evolution
To: $XDG_CONFIG_HOME/evolution/accels
Custom keyboard accelerator maps is a well-hidden feature these
days, especially in GNOME 3. Not worth migrating the old file.
-rw-r--r-- | e-util/e-util.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c index 5fdfed901b..7c203ec7b3 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -97,15 +97,10 @@ 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 ( - e_get_gnome2_user_dir (), - "accels", PACKAGE, NULL); + if (G_UNLIKELY (filename == NULL)) { + const gchar *config_dir = e_get_user_config_dir (); + filename = g_build_filename (config_dir, "accels", NULL); + } return filename; } |