From 12febda4ce88f9f319435ff1620e222365a05a29 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Wed, 22 Jan 2014 11:46:36 +0100 Subject: service.c: execute unity-control-center on desktops other than unity as well The fallback session uses the indicators as well but doesn't have $XDG_CURRENT_DESKTOP set to "Unity". --- src/service.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/service.c b/src/service.c index a2fc638..ab5deb5 100644 --- a/src/service.c +++ b/src/service.c @@ -692,7 +692,11 @@ on_settings_activated (GSimpleAction * a G_GNUC_UNUSED, GVariant * param G_GNUC_UNUSED, gpointer gself G_GNUC_UNUSED) { - if (!g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Unity")) + if (!g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "xubuntu")) + { + execute_command ("xfce4-power-manager-settings"); + } + else { gchar *path; @@ -704,8 +708,6 @@ on_settings_activated (GSimpleAction * a G_GNUC_UNUSED, g_free (path); } - else if (!g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "xubuntu")) - execute_command ("xfce4-power-manager-settings"); } static void -- cgit v1.2.3