Skip to content

Add utility to inhibit various actions

David Edmundson requested to merge work/kdeinhibit into master

People want to use inhibitions with scripts, which is perfectly sensible.

Most our inhibitors exit when the calling process quits, which is something we definitely want, but it fails when we have people making calls with qdbus/dbus-send and wondering why their inhibitions don't work.

This tiny script puts surfaces all inhibitors in a way that's relatively easy to use from shell scripts.

Usage is: kde-inhibit --screensaver --power sleep 100

(or whatever command you want)

CCBUG: 424288 CCBUG: 422436

Edited by David Edmundson

Merge request reports