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

Natalie Clarius <natalie_clar...@yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/powerdevil/-/commit/3054 |ma/powerdevil/-/commit/3f40
                   |58cf10bb4cf4ee15a3203cd8cf3 |f1473e5c56732ef7d6884eb9f63
                   |bd10f1bb0                   |b5b9d7ae9

--- Comment #34 from Natalie Clarius <natalie_clar...@yahoo.de> ---
Git commit 3f40f1473e5c56732ef7d6884eb9f63b5b9d7ae9 by Natalie Clarius.
Committed on 28/08/2024 at 19:19.
Pushed by nclarius into branch 'master'.

policyagent: support blocking inhibitions

Allow the user to release, and optionally configure to permanently reject,
inhibitions from certain apps for certain reasons.

Expose the following new methods and signals via D-Bus:
- `BlockInhibition`: Release any current inhibitions that match the pattern. If
set to permanent, also reject any new inhibitions from that app with that
reason. Permanently blocked inhibitions are kept track of in a list saved in
the powerdevil configuration file.
- `UnblockInhibition`: Retroactively inforce matching inhibitions that were
previously released or rejected but are still relevant. If set to permanent,
remove the pair from the list in the config if applicable.
- `ListPermanentlyBlockedInhibitions`, `ListTemporarilyBlockedInhibitions`:
List all inhibitions that that would currently be active but were released or
rejected on user request.
- `PermanentlyBlockedInhibitionsChanged`,
`TemporarilyBlockedInhibitionsChanged`: Emitted when blocked inhibitions are
added or removed.

For motivation of why such functionality is desired, see the bug report.

M  +6    -0    PowerDevilGlobalSettings.kcfg
M  +54   -10   daemon/dbus/org.kde.Solid.PowerManagement.PolicyAgent.xml
M  +1    -1    daemon/powerdevilcore.cpp
M  +210  -6    daemon/powerdevilpolicyagent.cpp
M  +28   -3    daemon/powerdevilpolicyagent.h

https://invent.kde.org/plasma/powerdevil/-/commit/3f40f1473e5c56732ef7d6884eb9f63b5b9d7ae9

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

Reply via email to