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 Jul 23, 2024
1 parent 6e70dea commit b6b55ef
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 b6b55ef

Please sign in to comment.