Merge lp:~jpds/do-plugins/session-dbus-fixes into lp:do-plugins

Proposed by Jonathan Davies
Status: Merged
Approved by: Alex Launi
Approved revision: 659
Merged at revision: 659
Proposed branch: lp:~jpds/do-plugins/session-dbus-fixes
Merge into: lp:do-plugins
Diff against target: None lines
To merge this branch: bzr merge lp:~jpds/do-plugins/session-dbus-fixes
Reviewer Review Type Date Requested Status
Alex Launi (community) Approve
Review via email: mp+12098@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jonathan Davies (jpds) wrote :

This branch fixes D-Bus changes in Ubuntu Karmic (notably org.gnome.PowerManagement to DeviceKit).

Revision history for this message
Alex Launi (alexlauni) wrote :

Looks good. Thanks a lot for fixing this!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'GNOME-Session/src/PowerManagement.cs'
--- GNOME-Session/src/PowerManagement.cs 2009-05-17 07:43:33 +0000
+++ GNOME-Session/src/PowerManagement.cs 2009-09-18 20:17:57 +0000
@@ -30,21 +30,21 @@
3030
31 class PowerManagement31 class PowerManagement
32 {32 {
33 [Interface ("org.freedesktop.PowerManagement")]33 [Interface ("org.freedesktop.DeviceKit.Power")]
34 interface IPowerManagementProxy34 interface IPowerManagementProxy
35 {35 {
36 void Hibernate ();36 void Hibernate ();
37 void Suspend ();37 void Suspend ();
38 }38 }
3939
40 const string BusName = "org.freedesktop.PowerManagement";40 const string BusName = "org.freedesktop.DeviceKit.Power";
41 const string ObjectPath = "/org/freedesktop/PowerManagement";41 const string ObjectPath = "/org/freedesktop/DeviceKit/Power";
4242
43 static IPowerManagementProxy BusInstance43 static IPowerManagementProxy BusInstance
44 {44 {
45 get {45 get {
46 try {46 try {
47 return Bus.Session.GetObject<IPowerManagementProxy> (BusName, new ObjectPath (ObjectPath));47 return Bus.System.GetObject<IPowerManagementProxy> (BusName, new ObjectPath (ObjectPath));
48 } catch (Exception e) {48 } catch (Exception e) {
49 Log<PowerManagement>.Error ("Could not get PowerManagement bus object: {0}", e.Message);49 Log<PowerManagement>.Error ("Could not get PowerManagement bus object: {0}", e.Message);
50 Log<PowerManagement>.Debug (e.StackTrace);50 Log<PowerManagement>.Debug (e.StackTrace);

Subscribers

People subscribed via source and target branches