Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatpak permissions #375

Open
niels0n opened this issue Apr 5, 2024 · 0 comments
Open

Flatpak permissions #375

niels0n opened this issue Apr 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@niels0n
Copy link

niels0n commented Apr 5, 2024

Do I have to grant the permission to read all my system files to flatpak?

I ask this because when I set it to "mpv_ext": true, then jellyfin-mpv-shim fails to start with this errors:

2024-04-05 23:59:34,943 [ INFO] conf: Loaded settings from json: /home/andrea/.var/app/com.github.iwalton3.jellyfin-mpv-shim/config/jellyfin-mpv-shim/conf.json 2024-04-05 23:59:34,961 [ INFO] player: Using external mpv playback backend. 2024-04-05 23:59:34,963 [ DEBUG] mpv-jsonipc: Staring MPV from mpv. 2024-04-05 23:59:34,963 [ DEBUG] mpv-jsonipc: Using IPC socket /tmp/mpv258467991803172 for MPV. Traceback (most recent call last): File "/app/bin/jellyfin-mpv-shim", line 8, in <module> sys.exit(main()) File "/app/lib/python3.10/site-packages/jellyfin_mpv_shim/mpv_shim.py", line 65, in main from .player import playerManager File "/app/lib/python3.10/site-packages/jellyfin_mpv_shim/player.py", line 1138, in <module> playerManager = PlayerManager() File "/app/lib/python3.10/site-packages/jellyfin_mpv_shim/player.py", line 206, in __init__ self._player = mpv.MPV( File "/app/lib/python3.10/site-packages/python_mpv_jsonipc.py", line 430, in __init__ self.mpv_process = MPVProcess(ipc_socket, mpv_location, **kwargs) File "/app/lib/python3.10/site-packages/python_mpv_jsonipc.py", line 236, in __init__ self.process = subprocess.Popen(args) File "/usr/lib/python3.10/subprocess.py", line 971, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'mpv' ^CException ignored in: <module 'threading' from '/usr/lib/python3.10/threading.py'> Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1567, in _shutdown lock.acquire() KeyboardInterrupt:

From FileNotFoundError: [Errno 2] No such file or directory: 'mpv' I assume that this is a problem related to flatpak's isolation.
Am I wrong?

@niels0n niels0n added the bug Something isn't working label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant