I’m working on a snap that downloads media files (mp3, ogg, mp4, mkv, etc) and allows to launch those media files in the default media player. Unfortunately it seems that on classic ubuntu desktop the launch command via glib fails with unknown scheme. I know we needed to monkey-patch web addresses with the snapd-xdg-open apt package (which is being ported into snapd itself), so do we need to also monkey-patch opening video and audio files from the filesystem?
If the default media player is in a snap then presumably the snap I’m building will need to provide a content interface, but that is for another day…
I have the same issue. Looking at the code it looks like snapd-xdg-open actually denies all urls which are not listed in this pretty limited whitelist.