From bcd2a4f8a3079fe0494f7e24d0d1e6b1d407eb9c Mon Sep 17 00:00:00 2001 From: Peter Bui Date: Sat, 19 Jul 2025 00:18:18 -0400 Subject: [PATCH] Add mpris slot This allows Epiphany to report what media is playing (ie. YouTube video) via MPRIS and allows for third-party control of the media playback. --- snapcraft.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/snapcraft.yaml b/snapcraft.yaml index c246cb6..497c86c 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -23,6 +23,10 @@ slots: interface: dbus bus: session name: org.gnome.Epiphany + mpris: + # Since WebKit uses org.gnome.Epiphany as the name, but snapd does not + # allow ".", just use org for name + name: org layout: /usr/share/epiphany: @@ -51,6 +55,8 @@ apps: - removable-media - screen-inhibit-control - upower-observe + slots: + - mpris desktop: usr/share/applications/org.gnome.Epiphany.desktop environment: GSETTINGS_SCHEMA_DIR: $SNAP/usr/share/glib-2.0/schemas