From 78607a57693e0141cd7221c39cb019bbb6b42c3e Mon Sep 17 00:00:00 2001 From: Zhang Xianwei Date: Mon, 29 Oct 2018 20:13:28 +0800 Subject: Fix case-insensitive comparison in running_in_mate The environment variable XDG_SESSION_DESKTOP and DESKTOP_SESSION in running_in_mate are compared using "MATE". Actually the environment variable in MATE DE is "mate"(lower case). Using "mate" instead of "MATE" to fix it. Signed-off-by: Zhang Xianwei --- src/caja-application.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/caja-application.c') diff --git a/src/caja-application.c b/src/caja-application.c index 77a323a6..723edfcf 100644 --- a/src/caja-application.c +++ b/src/caja-application.c @@ -1979,8 +1979,8 @@ static gboolean running_in_mate (void) { return (g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "MATE") == 0) - || (g_strcmp0 (g_getenv ("XDG_SESSION_DESKTOP"), "MATE") == 0) - || (g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "MATE") == 0); + || (g_strcmp0 (g_getenv ("XDG_SESSION_DESKTOP"), "mate") == 0) + || (g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "mate") == 0); } static gboolean -- cgit v1.2.1