Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Fix mpris slot name
Browse files Browse the repository at this point in the history
MPRIS enables desktop environments (e.g. GNOME) to provide media player
controls for media playing in the browser.

Brave uses DBus name `org.mpris.MediaPlayer2.chromium` whereas Snap sets
an AppArmor rule for `org.mpris.MediaPlayer2.brave` by default. Setting
the name parameter explicitly for the slot makes Snap generate a
compatible AppArmor rule.

Fixes brave/brave-browser#16187
  • Loading branch information
jayschwa committed Feb 9, 2023
1 parent b813a1e commit b1daad0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ plugs:
browser-sandbox:
interface: browser-support
allow-sandbox: true
slots:
mpris:
interface: mpris
name: chromium
parts:
brave:
plugin: dump
Expand Down

0 comments on commit b1daad0

Please sign in to comment.