Include MPRIS players in Introspect.GetRunningApplications
Affected version
- Endless OS (development branch)
- GNOME Shell 3.38.0+dev78.d393a2d-15bem3 (plus our extensions which I don't think are relevant here)
- X.org
Bug summary
Many media players which support MPRIS, such as Lollypop and Spot, keep playing music while the window is closed. Currently, when run as Flatpaks, these trigger a warning that they are running in the background.
I believe this behaviour is incorrect and they should not be treated as background applications: they are doing the right thing and providing a visible (not to mention audible) indication that they are running and a way to interact with them. (If I close the Lollypop window while no music is playing, it correctly exits.)
Rather than teaching xdg-desktop-portal-gtk about MPRIS, I think the Shell could provide this information in GetRunningApplications. These apps are running and Shell knows they are!
Steps to reproduce
- Launch Lollypop, Spot, or similar media player which supports being hidden while playing
- Start playing music
- Close the window
What happened
The music continues playing, and an item is shown in the notification menu to indicate that the app is running in the background, providing the means to control the playing music or bring back the window.
But xdg-desktop-portal(-gtk) believed that the app is running in the background without permission, and showed me a notification and scary dialogue to that effect.
What did you expect to happen
No notification should be displayed: the app is correctly indicating that it is still playing music using MPRIS, and Shell is correctly showing this. I don't see any benefit in the app requesting background permission (which I believe would trigger a similar dialogue).