Skip to content

Commit

Permalink
interfaces/desktop-legacy: allow DBus access to com.canonical.dbusmenu
Browse files Browse the repository at this point in the history
com.canonical.dbusmenu is used to define actions for app-indicators.
The desktop-legacy interface already has rules to allow app-indicators,
so it shold also allow com.canonical.dbusmenu.

Rules copied from the unity7 interface.
  • Loading branch information
aleasto authored and Meulengracht committed Nov 18, 2024
1 parent 8533329 commit c536275
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions interfaces/builtin/desktop_legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,42 @@ dbus (send)
member=Lookup
peer=(label=unconfined),
# dbusmenu
dbus (send)
bus=session
path=/{MenuBar{,/[0-9A-F]*},com/canonical/{menu/[0-9A-F]*,dbusmenu}}
interface=com.canonical.dbusmenu
member="{LayoutUpdated,ItemsPropertiesUpdated}"
peer=(label="{plasmashell,unconfined}"),
dbus (receive)
bus=session
path=/{MenuBar{,/[0-9A-F]*},com/canonical/{menu/[0-9A-F]*,dbusmenu}}
interface="{com.canonical.dbusmenu,org.freedesktop.DBus.Properties}"
member=Get*
peer=(label="{plasmashell,unconfined}"),
dbus (receive)
bus=session
path=/{MenuBar{,/[0-9A-F]*},com/canonical/{menu/[0-9A-F]*,dbusmenu}}
interface=com.canonical.dbusmenu
member="{AboutTo*,Event*}"
peer=(label="{plasmashell,unconfined}"),
dbus (receive)
bus=session
path=/{MenuBar{,/[0-9A-F]*},com/canonical/{menu/[0-9A-F]*,dbusmenu}}
interface=org.freedesktop.DBus.Introspectable
member=Introspect
peer=(label="{plasmashell,unconfined}"),
dbus (receive)
bus=session
path=/com/canonical/dbusmenu
interface=org.freedesktop.DBus.Properties
member=Get*
peer=(label="{plasmashell,unconfined}"),
# app-indicators
dbus (send)
bus=session
Expand Down

0 comments on commit c536275

Please sign in to comment.