-
Notifications
You must be signed in to change notification settings - Fork 884
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
Linux - flatpak version throws an exception instead of opening mpv #1735
Comments
I was investigating this because I saw this exception and arrived at this open issue |
I have the same issue on the Flatpak version. Throws the error no matter what player or path we use. |
@repparw was on the right track: it is possible to use mpv right now by using "flatpak-spawn". This is what you need to do:
That's it :) PS: Maybe this should be added as an option in the "drop-down" menu (ex: "mpv inside flatpak") or, at least, somewhere in the documentation. |
This worked for me, much appreciated! |
@dinotheextinct can you send the output of "flatpak info --show-permissions io.mpv.Mpv" I doubt this is a permissions issue but I wanna check it has dbus access first as I have no idea what could also cause the appimage to break. |
|
Sorry I meant "io.freetubeapp.FreeTube" instead of "io.mpv.Mpv", please run the same command but with the freetube name above, and send the output. |
` ~ flatpak info --show-permissions io.freetubeapp.FreeTube ✔ 22:18:00 [Session Bus Policy] [Environment] |
Okay I see how to fix this, for some reason the flatpak freetube ppl (or it might just be a part of the update process) pushed out a change that disabled part of the dbus permission called "session-bus", you can enable it in the cli but its a bit messy and it would be better practice to get some experience with Flatseal. Flatseal is a GUI app that lets you modify the permissions a flatpak has, like camera access, files, ect. You can install it with:
Toggle that on with the switch, then close Flatseal, and close FreeTube if it is still running, when you re-open FreeTube, it should work again. Flatseal lets you manipulate the permission of apps in a bit more detail than say macOS, so feel free to change values about and experiment, you can always reset things with the "Reset" button in the bottom right to reset them back to the standard install, however if you do that you will have to re-enable the D-Bus session bus again. For some extra info, dbus stuff usually involves letting the flatpak interact with other programs in the system, and either of the two commands is required for "flatpak-spawn" to work. Either permission works, but from my understanding the session bus one is a lower permission than system bus, so its better to just enable that one for security reasons. Also for a permission change to take effect, the program needs to be launched after the toggle has been switched, that's why we closed FreeTube and re-opened it. |
Also yep, it was them: flathub/io.freetubeapp.FreeTube@0b495c9 I'll see if I can get them to add a special permission for the mpv binary itself, but I doubt I could convince them to let it have access to all flatpaks in the system for the situation when mpv is a flatpak. |
I've made this issue to see if it can be fixed by default, if anyone knows the dbus bus name for mpv, please comment it there, as I can't find it online or on my system. |
Configuring the external player settings as described by @greenfoo and then adding D-Bus session permission as described by @DEFCON001 solved it for me. |
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Is this now fixed? Because appimage doesnt work with external mpv either anymore for me. |
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
I'm going to close this issue because there is an open issue in the flathub repo and needs to be addressed over there. You are free to take the discussions over there or keep it here. |
here is working solution. (install mpv flatpak version) launch freetube like this: add these settings: |
Why is this documented nowhere, have to search through issues on github to find solutions for something straightforward as this... |
Behavior of the program
Using the new version (supporting external players), "open in external player" throws an exception:
mpv is available using that path
Expected behavior
mpv opening up and playing the video
To Reproduce
Environment Information (please complete the following information):
Additional context
installed the AppImage and the issue is gone -- i guess it's related to the "sandboxing" of flatpak apps
The text was updated successfully, but these errors were encountered: