Merge lp://staging/~ochosi/indicator-power/xfce4-powermanager-settings into lp://staging/indicator-power/14.04

Proposed by Simon Steinbeiß
Status: Merged
Merged at revision: 222
Proposed branch: lp://staging/~ochosi/indicator-power/xfce4-powermanager-settings
Merge into: lp://staging/indicator-power/14.04
Diff against target: 25 lines (+10/-6)
1 file modified
src/service.c (+10/-6)
To merge this branch: bzr merge lp://staging/~ochosi/indicator-power/xfce4-powermanager-settings
Reviewer Review Type Date Requested Status
Sebastien Bacher Needs Fixing
Lars Karlitski Pending
Review via email: mp+202514@code.staging.launchpad.net

Description of the change

This tiny patch (along the lines of indicator-sound: http://bazaar.launchpad.net/~indicator-applet-developers/indicator-sound/trunk.14.04/view/head:/src/service.vala#L120) adds support for opening xfce4-powermanager-settings if indicator-power is in a Xubuntu session. It will also make it easier to add other desktops, e.g. if ubuntu-studio decide they want to use it as well.

This would be very useful, as we (Xubuntu team) plan to use indicator-power by default in 14.04.

(Rebased version of the patch on top of Robert's u-c-c branch that just got merged.)

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the work there, that seems slightly buggy though, in the case where the session is not Unity you do

" gchar *path
...
 g_free (path);"

that's likely to lead to invalid frees since you don't init path to NULL

review: Needs Fixing
Revision history for this message
Lars Karlitski (larsu) wrote :

Thanks for the patch. I've fixed the free() and rearranged the logic a bit to have a proper fallback on non-unity sessions at lp:~larsu/indicator-power/xfce-control-center

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches