org.freedesktop.PowerManagement always available?
Thomas Kluyver
thomas at kluyver.me.uk
Wed Apr 9 13:55:23 UTC 2025
Hi Christian,
On Tue, 8 Apr 2025, at 16:18, c.buhtz at posteo.jp wrote:
> 2. To my research the freedesktop session manager is somehow connected
> to tjhe "upower" package which is available on most GNU/Linux systems.
> If "upower" is installed (maybe because it is a dependency of my
> application) can I rely on the fact, that the freedesktop manager will
> always be available? So I could get rid of the two other managers and
> the iteration?
Unfortunately that's not the case. I'm using Gnome, upower is installed, but there's no org.freedesktop.PowerManagement service. This looks like the page for the freedesktop API:
https://www.freedesktop.org/wiki/Specifications/power-management-spec/
"This is no longer supported in gnome-power-manager. This spec is considered obsolete."
I've no idea why it's obsolete, but it does look like you'll need to keep supporting different interfaces for this.
Best wishes,
Thomas
More information about the dbus
mailing list