Skip to content

Commit

Permalink
i/b/mpris: add plasmashell as label
Browse files Browse the repository at this point in the history
Similar to #13737. Amending this makes mpris work again in plasma.
  • Loading branch information
soumyaDghosh authored and Meulengracht committed Nov 12, 2024
1 parent 073ddad commit fbb8662
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions interfaces/builtin/mpris.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,27 +61,27 @@ dbus (send)
path=/org/freedesktop/DBus
interface=org.freedesktop.DBus
member="{Request,Release}Name"
peer=(name=org.freedesktop.DBus, label=unconfined),
peer=(name=org.freedesktop.DBus, label="{plasmashell,unconfined}"),
dbus (send)
bus=system
path=/org/freedesktop/DBus
interface=org.freedesktop.DBus
member="GetConnectionUnix{ProcessID,User}"
peer=(name=org.freedesktop.DBus, label=unconfined),
peer=(name=org.freedesktop.DBus, label="{plasmashell,unconfined}"),
dbus (send)
bus=session
path=/org/mpris/MediaPlayer2
interface=org.freedesktop.DBus.Properties
member="{GetAll,PropertiesChanged}"
peer=(name=org.freedesktop.DBus, label=unconfined),
peer=(name=org.freedesktop.DBus, label="{plasmashell,unconfined}"),
dbus (send)
bus=session
path=/org/mpris/MediaPlayer2
interface="org.mpris.MediaPlayer2{,.Player}"
peer=(name=org.freedesktop.DBus, label=unconfined),
peer=(name=org.freedesktop.DBus, label="{plasmashell,unconfined}"),
# we can always connect to ourselves
dbus (receive)
Expand Down Expand Up @@ -122,11 +122,11 @@ const mprisConnectedSlotAppArmorClassic = `
dbus (receive)
bus=session
path=/org/mpris/MediaPlayer2
peer=(label=unconfined),
peer=(label="{plasmashell,unconfined}"),
dbus (receive)
bus=session
interface=org.freedesktop.DBus.Introspectable
peer=(label=unconfined),
peer=(label="{plasmashell,unconfined}"),
`

const mprisConnectedPlugAppArmor = `
Expand All @@ -139,19 +139,19 @@ dbus (send)
bus=session
path=/org/freedesktop/DBus
interface=org.freedesktop.DBus.Introspectable
peer=(name="org.freedesktop.DBus", label="unconfined"),
peer=(name="org.freedesktop.DBus", label="{plasmashell,unconfined}"),
dbus (send)
bus=session
path=/{,org,org/mpris,org/mpris/MediaPlayer2}
interface=org.freedesktop.DBus.Introspectable
peer=(name="org.freedesktop.DBus", label="unconfined"),
peer=(name="org.freedesktop.DBus", label="{plasmashell,unconfined}"),
# This reveals all names on the session bus
dbus (send)
bus=session
path=/
interface=org.freedesktop.DBus
member=ListNames
peer=(name="org.freedesktop.DBus", label="unconfined"),
peer=(name="org.freedesktop.DBus", label="{plasmashell,unconfined}"),
# Communicate with the mpris player
dbus (send)
Expand Down

0 comments on commit fbb8662

Please sign in to comment.