org.freedesktop.PowerManagement always available?
Thiago Macieira
thiago at kde.org
Wed Apr 9 23:31:01 UTC 2025
On Tuesday, 8 April 2025 23:52:43 Pacific Daylight Time c.buhtz at posteo.jp
wrote:
> I could sleep easier if I would knew which dependency my application
> needs to be sure that the freedesktop.org powermanager is available. How
> do I know this?
You don't. Your application should simply query the environment to see if the
capability is present. If it is, use it. If it isn't, then there's nothing you
can do.
> Or is such a powermanager just a standard/protocol that can be
> implemented and offered by multiple applications? How does this system
> work?
Partially correct. There's only one application per environment that is
supposed to provide it, but each environment may have their own implementation
of it. It's provided by the desktop itself.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Principal Engineer - Intel DCAI Platform & System Engineering
More information about the dbus
mailing list