Skip to content

Commit

Permalink
interfaces/screen_inhibit_control: Receive notifs for inhibit changes
Browse files Browse the repository at this point in the history
Plugged application could change the inhibit status but had no way to be
notified when it actually changes.
  • Loading branch information
er-vin committed Sep 3, 2024
1 parent 71d31f3 commit 88e6436
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions interfaces/builtin/screen_inhibit_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ dbus (send)
interface=org.freedesktop.PowerManagement.Inhibit
member={Inhibit,UnInhibit}
peer=(label=unconfined),
dbus (receive)
bus=session
path=/org/freedesktop/PowerManagement/Inhibit
interface=org.freedesktop.PowerManagement.Inhibit
member=HasInhibitChanged
peer=(label=unconfined),
# API rule
dbus (send)
Expand Down

0 comments on commit 88e6436

Please sign in to comment.