aboutsummaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index f41b3a7..54347e8 100644
--- a/src/service.c
+++ b/src/service.c
@@ -717,7 +717,7 @@ on_settings_activated (GSimpleAction * a G_GNUC_UNUSED,
{
control_center_cmd = "xfce4-power-manager-settings";
}
- else if (!g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "pantheon"))
+ else if (!g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "pantheon"))
{
control_center_cmd = "switchboard --open-plug system-pantheon-power";
}