Re: org.freedesktop.PowerManagement always available?
Thiago Macieira <[email protected]> Wed, 09 Apr 2025 16:31:01 -0700
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <4455202.UPlyArG6xL@tjmaciei-mobl5> |
On Tuesday, 8 April 2025 23:52:43 Pacific Daylight Time [email protected] 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.