aboutsummaryrefslogtreecommitdiff
path: root/src/backend-dbus
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend-dbus')
-rw-r--r--src/backend-dbus/actions.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c
index 9169b5d..84d6600 100644
--- a/src/backend-dbus/actions.c
+++ b/src/backend-dbus/actions.c
@@ -101,16 +101,11 @@ prompt_status_t;
static gboolean
have_mate_program (const gchar *program)
{
- const gchar *xdg_current_desktop;
g_auto(GStrv) desktop_names = NULL;
- xdg_current_desktop = g_getenv ("XDG_CURRENT_DESKTOP");
- if (xdg_current_desktop != NULL) {
- desktop_names = g_strsplit (xdg_current_desktop, ":", 0);
- if (g_strv_contains ((const gchar * const *) desktop_names, "MATE")) {
- g_autofree gchar *path = g_find_program_in_path (program);
- return path != NULL;
- }
+ if (is_mate()) {
+ g_autofree gchar *path = g_find_program_in_path (program);
+ return path != NULL;
}
return FALSE;