aboutsummaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorCody Garver <cody@elementaryos.org>2014-03-15 03:30:23 -0500
committerCody Garver <cody@elementaryos.org>2014-03-15 03:30:23 -0500
commit4ba6d06e004fcf316defc8e10280640f581039bd (patch)
tree7935c3f18c59560dbaaed46f0b7624da9aca521c /src/service.c
parent6b9e3d4fb5e11d5d09bc376aa2a56db6a02b55ee (diff)
downloadayatana-indicator-power-4ba6d06e004fcf316defc8e10280640f581039bd.tar.gz
ayatana-indicator-power-4ba6d06e004fcf316defc8e10280640f581039bd.tar.bz2
ayatana-indicator-power-4ba6d06e004fcf316defc8e10280640f581039bd.zip
Add support for Switchboard when in Pantheon session to fix bug #1291051
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 1d8ba3e..f41b3a7 100644
--- a/src/service.c
+++ b/src/service.c
@@ -717,6 +717,10 @@ on_settings_activated (GSimpleAction * a G_GNUC_UNUSED,
{
control_center_cmd = "xfce4-power-manager-settings";
}
+ else if (!g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "pantheon"))
+ {
+ control_center_cmd = "switchboard --open-plug system-pantheon-power";
+ }
else
{
gchar *path;