Open ioerror opened 2 weeks ago
A (potential) user was unwilling to install this software due to the permission warnings about the possible microphone and webcam access. I have opened https://github.com/flathub/com.github.iwalton3.jellyfin-media-player/pull/68 to reduce the permissions.
The microphone access is likely to remain due to the required pulseaudio
socket and the current permissions model of flatpak regarding audio devices. The other permission reductions are useful but there does not appear to be a way to play audio without also having the permissions to record audio with flatpak.
This related discussion seems relevant: https://github.com/flatpak/xdg-desktop-portal/discussions/1142
The permissions on flathub say "User Device Access" and "Microphone Access" - these permissions appear to be unnecessary.
This line is the issue: https://github.com/flathub/com.github.iwalton3.jellyfin-media-player/blob/dca07bb429551255f9f896c05d7ed20b54791662/com.github.iwalton3.jellyfin-media-player.json#L15
Ubuntu 24.04 is impacted by the Wayland/NVIDIA issues but this allows it to run with fewer permissions and it works under wayland with the not so great NVIDIA non-free drivers:
Alternatively it is possible to set an override and run the flatpak without setting the arguments every time:
Note: To remove the original permissions, one needs to change the
json
file and rebuild, set an override, or useflatseal
to change the permissions.