On 13 February 2017 at 15:02, Vasilisc <vasilisc...@gmail.com> wrote: > How to allow vlc - "org.mpris.MediaPlayer2.vlc.instance*" ??? > > [0xd5f358] dbus interface error: Error requesting service name > org.mpris.MediaPlayer2.vlc.instance3045: Connection ":1.69" is not allowed > to own the service "org.mpris.MediaPlayer2.vlc.instance3045" due to AppArmor > policy > > ------------------------------ > I don't see interfaces dbus|mpris > > # LANG=C apt policy snapd > snapd: > Installed: 2.21 > Candidate: 2.21 > Version table: > *** 2.21 500 > 500 http://fi.archive.ubuntu.com/ubuntu xenial-updates/main amd64 > Packages > 100 /var/lib/dpkg/status > 2.0.2 500 > 500 http://fi.archive.ubuntu.com/ubuntu xenial/main amd64 Packages > > # snap interfaces | grep -E "(dbus|mpris)" > #
You should be able to do this by adding a slot to your snap using the "mpris" interface. Something like this: slots: mpris: interface: mpris name: vlc Then make sure the app inside your snap uses this slot. This interface looks like it will work okay for the mpris provider, and okay for unconfined mpris clients on classic systems. It's not clear how you'd write a confined client that could act as a remote for all installed players without defining many duplicate plugs. If you're only interested in use on classic systems though, this should be good enough though. James. -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft