diff options
author | Cody Garver <cody@elementaryos.org> | 2014-10-09 13:42:03 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-10-09 13:42:03 +0000 |
commit | 939cea2a980eacdf930cc707e9ad6e6caa133ecc (patch) | |
tree | 72e6c757f7dc908e9679e2d7a96805e23dad111b /src | |
parent | 10101c23dd2d894a88ccbdaa11e6de4e73780c77 (diff) | |
parent | 27fa89271d54f2977f4dfed305d5eadf360f37ce (diff) | |
download | ayatana-indicator-power-939cea2a980eacdf930cc707e9ad6e6caa133ecc.tar.gz ayatana-indicator-power-939cea2a980eacdf930cc707e9ad6e6caa133ecc.tar.bz2 ayatana-indicator-power-939cea2a980eacdf930cc707e9ad6e6caa133ecc.zip |
Add Switchboard as alternative recommend Fixes: 1291051
Approved by: Ted Gould, PS Jenkins bot
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index 665151c..32cec38 100644 --- a/src/service.c +++ b/src/service.c @@ -692,6 +692,10 @@ on_settings_activated (GSimpleAction * a G_GNUC_UNUSED, { control_center_cmd = "xfce4-power-manager-settings"; } + else if (!g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Pantheon")) + { + control_center_cmd = "switchboard --open-plug system-pantheon-power"; + } else { gchar *path; |