aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Garver <cody@elementaryos.org>2014-04-09 03:28:01 -0500
committerCody Garver <cody@elementaryos.org>2014-04-09 03:28:01 -0500
commit96b41245b927453554efd3caf7a7776b6b94eaeb (patch)
tree791875192cf66008a64dc53183bee4757d3c2963
parent3a9c255fccec13b9df0f9f985d66de33ed6d2119 (diff)
downloadayatana-indicator-power-96b41245b927453554efd3caf7a7776b6b94eaeb.tar.gz
ayatana-indicator-power-96b41245b927453554efd3caf7a7776b6b94eaeb.tar.bz2
ayatana-indicator-power-96b41245b927453554efd3caf7a7776b6b94eaeb.zip
Use XDG_CURRENT_DESKTOP instead
-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";
}