Use UPower namespace as default DBus name preserving old one
Expose the daemon as org.freedesktop.UPower.PowerProfiles
by default
but we also own the old net.hadess.PowerProfiles
name for
compatibility resons.
Also dbus objects are now registered also in the path
/org/freedesktop/UPower/PowerProfiles
and they implement the
org.freedesktop.UPower.PowerProfiles
interface.
Even in this case we preserve the compatibility with the old ones.
To make this switch as most reliable as possible, the code is now generated for dbus configuration files preserving the previous ones as base.
Tests are now performed checking both names, to ensure again that we're not breaking the expectations for the old APIs consumers.
Merge request reports
Activity
requested review from @superm1
added 5 commits
-
f37b74b6 - 1 commit from branch
upower:main
- 33e34752 - build: Bump meson requirement to 0.58
- 4454af2b - data: Rename policykit policies to UPower namespace
- e3379db0 - cleanup: Use UPower namespace as default DBus name preserving old one
- e64527f7 - powerprofilesctl: Use global variable to hold names and infaces
Toggle commit list-
f37b74b6 - 1 commit from branch
added enhancement label
added 5 commits
-
143e35da - 1 commit from branch
upower:main
- 53115abf - build: Bump meson requirement to 0.58
- 520622ba - data: Rename policykit policies to UPower namespace
- 3b29b0e5 - cleanup: Use UPower namespace as default DBus name preserving old one
- 32f5abfb - powerprofilesctl: Use global variable to hold names and infaces
Toggle commit list-
143e35da - 1 commit from branch
- Resolved by Marco Trevisan
We might need to double check this - I'm seeing this:
$ powerprofilesctl Failed to communicate with power-profiles-daemon: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such method “Get” (19)