Hello!
As a developer of an Electron-based
Music application, I'm relying on the MediaSession API to support OS media keys and controls in a portable way. As you can guess, media keys are critical to the app.
This works pretty well, and I'm very grateful for it.
However, I've encounter a serious blocker while publishing my application as a
Snap.
As you know, Snap is the prefered way to distribute desktop applications in the Ubuntu ecosystem (and broader).
Snap has a safe and strict containment model which impose to declare plugs and slot, kind of the way Android platform does. Developer must provide a yaml descriptor indicating the
desired MPRIS name.
In Chromium source code, the MPRIS name is
hardcoded. It can be changed from "chromium" to "chrome" when building the browser. But since I'm using Electron, I don't built it myself, and it's set to chromium.
The issue is: Snap moderators are rejecting my application as they would like me to use an MPRIS name in line with my app name (melodie).
Would it be reasonable to allow Chromium user set their MPRIS name with some flag?
I'm no good at C/C++, but I'm keen to give it a try, if you think this could be a valid solution.