summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file-utilities.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-04-18 11:19:51 +0300
committermonsta <[email protected]>2017-04-18 11:19:51 +0300
commited842baac4f438a90bd6214020d2363241171545 (patch)
treeb6c53a05b67ee00e489ac7a4d7d976bd6e6803a9 /libcaja-private/caja-file-utilities.c
parent4a8a1305182690761993f3a86d6b72b3729fbb75 (diff)
downloadcaja-ed842baac4f438a90bd6214020d2363241171545.tar.bz2
caja-ed842baac4f438a90bd6214020d2363241171545.tar.xz
don't check nonexistent MATE22_USER_DIR env var
another case of excessive gnome -> mate renaming back in 2011
Diffstat (limited to 'libcaja-private/caja-file-utilities.c')
-rw-r--r--libcaja-private/caja-file-utilities.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/libcaja-private/caja-file-utilities.c b/libcaja-private/caja-file-utilities.c
index aba9cf83..237f85d7 100644
--- a/libcaja-private/caja-file-utilities.c
+++ b/libcaja-private/caja-file-utilities.c
@@ -172,22 +172,11 @@ char* caja_get_user_directory(void)
* Get the path for the filename containing caja accelerator map.
* The filename need not exist.
*
- * Return value: the filename path, or NULL if the home directory could not be found
+ * Return value: the filename path
**/
char* caja_get_accel_map_file(void)
{
- const gchar* override;
-
- override = g_getenv ("MATE22_USER_DIR");
-
- if (override)
- {
- return g_build_filename(override, "accels", "caja", NULL);
- }
- else
- {
- return g_build_filename(g_get_user_config_dir(), "caja", "accels", NULL);
- }
+ return g_build_filename (g_get_user_config_dir (), "caja", "accels", NULL);
}
typedef struct {