Merge lp:~codygarver/indicator-power/fix-1291051 into lp:indicator-power/14.10

Proposed by Charles Kerr
Status: Merged
Approved by: Ted Gould
Approved revision: 239
Merged at revision: 267
Proposed branch: lp:~codygarver/indicator-power/fix-1291051
Merge into: lp:indicator-power/14.10
Diff against target: 27 lines (+5/-1)
2 files modified
debian/control (+1/-1)
src/service.c (+4/-0)
To merge this branch: bzr merge lp:~codygarver/indicator-power/fix-1291051
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+237707@code.launchpad.net

Commit message

Add Switchboard as alternative recommend

Description of the change

Add Switchboard as alternative recommend

Sibling to the 14.04 MP at https://code.launchpad.net/~codygarver/indicator-power/fix-1291051/+merge/211170

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ted Gould (ted) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-08-22 14:56:00 +0000
3+++ debian/control 2014-10-09 01:24:21 +0000
4@@ -30,7 +30,7 @@
5 Depends: ${shlibs:Depends},
6 ${misc:Depends},
7 upower,
8-Recommends: unity-control-center | gnome-control-center (>= 3.1) | ubuntu-system-settings | xfce4-power-manager,
9+Recommends: unity-control-center | gnome-control-center (>= 3.1) | ubuntu-system-settings | switchboard-plug-power | xfce4-power-manager,
10 indicator-applet (>= 0.2) | indicator-renderer,
11 Suggests: powerd,
12 unity-system-compositor (>= 0.0.4),
13
14=== modified file 'src/service.c'
15--- src/service.c 2014-09-12 00:15:14 +0000
16+++ src/service.c 2014-10-09 01:24:21 +0000
17@@ -692,6 +692,10 @@
18 {
19 control_center_cmd = "xfce4-power-manager-settings";
20 }
21+ else if (!g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Pantheon"))
22+ {
23+ control_center_cmd = "switchboard --open-plug system-pantheon-power";
24+ }
25 else
26 {
27 gchar *path;

Subscribers

People subscribed via source and target branches