https://bugs.kde.org/show_bug.cgi?id=457859

--- Comment #8 from Jakob Petsovits <jpe...@petsovits.com> ---
(In reply to Jakob Petsovits from comment #7)
> Ah yes, you're right. Filtering out PowerDevil by "who" should do the trick.
> Thanks for the good thought, it looks like my brain isn't in top shape today
> :P

Although there is still the issue of when to check for updates. Right now
PowerDevil monitors the "BlockInhibited" property of the logind D-Bus interface
and re-reads the current list of inhibitors when that property changes. If an
inhibitor for "handle-lid-switch" is already set, adding a second one won't
cause "BlockInhibited" to change. There is an "NCurrentInhibitors" property
which could help with this, but no D-Bus signal is emitted when it changes.

One could resort to polling, but that's a terrible hack and we should first
look into a proper long-term solution before considering to add this
temporarily.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to