Merge lp:~robert-ancell/indicator-power/unity-control-center2 into lp:indicator-power/14.04

Proposed by Robert Ancell
Status: Merged
Approved by: Lars Karlitski
Approved revision: 222
Merged at revision: 221
Proposed branch: lp:~robert-ancell/indicator-power/unity-control-center2
Merge into: lp:indicator-power/14.04
Diff against target: 32 lines (+9/-2)
2 files modified
debian/control (+1/-1)
src/service.c (+8/-1)
To merge this branch: bzr merge lp:~robert-ancell/indicator-power/unity-control-center2
Reviewer Review Type Date Requested Status
Sebastien Bacher Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+201130@code.launchpad.net

Commit message

Use unity-control-center if it is available

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
Sebastien Bacher (seb128) wrote :

Shouldn't we list u-c-c first in the recommends order since that's our default desktop/where indicators are used most/the first choice in the code? (same comment for the similar merge requests on other indicators)

Revision history for this message
Robert Ancell (robert-ancell) wrote :

> Shouldn't we list u-c-c first in the recommends order since that's our default
> desktop/where indicators are used most/the first choice in the code? (same
> comment for the similar merge requests on other indicators)

Yes. For some reason at the time I was thinking that would pull u-c-c in before it was ready but I don't think that's the case since ubuntu-desktop depends on gnome-control-center.

222. By Robert Ancell

Recommend unity-control-center before gnome-control-center

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sebastien Bacher (seb128) wrote :

That looks fine to me, comment approving and letting somebody from the indicator team changing the status if they like it (would be nice to get it reviewed, we need those changes to land to be able to change the default settings app to unity-control-center on the desktop image)

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 2013-09-16 01:51:58 +0000
3+++ debian/control 2014-01-14 04:40:57 +0000
4@@ -24,7 +24,7 @@
5 Depends: ${shlibs:Depends},
6 ${misc:Depends},
7 upower,
8-Recommends: gnome-control-center (>= 3.1) | ubuntu-system-settings,
9+Recommends: unity-control-center | gnome-control-center (>= 3.1) | ubuntu-system-settings,
10 indicator-applet (>= 0.2) | indicator-renderer,
11 Description: Indicator showing power state.
12 This indicator displays current power management information and gives
13
14=== modified file 'src/service.c'
15--- src/service.c 2013-12-04 11:59:21 +0000
16+++ src/service.c 2014-01-14 04:40:57 +0000
17@@ -692,7 +692,14 @@
18 GVariant * param G_GNUC_UNUSED,
19 gpointer gself G_GNUC_UNUSED)
20 {
21- execute_command ("gnome-control-center power");
22+ gchar *path;
23+
24+ path = g_find_program_in_path ("unity-control-center");
25+ if (path != NULL)
26+ execute_command ("unity-control-center power");
27+ else
28+ execute_command ("gnome-control-center power");
29+ g_free (path);
30 }
31
32 static void

Subscribers

People subscribed via source and target branches