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

Add org.freedesktop.Flatpak permission #75

Closed
wants to merge 1 commit into from
Closed

Conversation

bbhtt
Copy link
Contributor

@bbhtt bbhtt commented Aug 6, 2022

Fixes #74

This isn't very ideal as it allows to run arbitrary commands from inside the sandbox. But there's no other solution I can think of since Freetube doesn't download the video, it only passes the link to the external player.

Tested with:

  1. Flatpaked MPV Linux - flatpak version throws an exception instead of opening mpv FreeTubeApp/FreeTube#1735 (comment)
  2. Host MPV Linux - flatpak version throws an exception instead of opening mpv FreeTubeApp/FreeTube#1735 (comment)

@flathubbot
Copy link

Started test build 103701

@bbhtt
Copy link
Contributor Author

bbhtt commented Aug 6, 2022

bot, build

@flathubbot
Copy link

Queued test build for io.freetubeapp.FreeTube.

@flathubbot
Copy link

Started test build 103703

@flathubbot
Copy link

Build 103703 successful
To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/101406/io.freetubeapp.FreeTube.flatpakref

@flathubbot
Copy link

Build 103701 failed

Freeube can play videos using external players. This is need to launch
the external players from the sandbox by calling flatpak-spawn --host.
This isn't very ideal as it allows to run arbitrary commands from
inside the sandbox.
@flathubbot
Copy link

Started test build 4648

@flathubbot
Copy link

Build 4648 failed

@bbhtt
Copy link
Contributor Author

bbhtt commented Nov 2, 2022

Build 4648 failed

This is failing due to the linter, an exception must be requested.

@bbhtt
Copy link
Contributor Author

bbhtt commented Jun 3, 2023

cc @PrestonN

@bbhtt
Copy link
Contributor Author

bbhtt commented Aug 15, 2023

I'm closing this flatpak spawn is a huge access and doesn't make sense to me when a) Freetube can play the videos by itself B) External player is optional and there are too many to support C) Maybe it'd be better to include at least MPV in this flatpak

The alternative is to wait for a portal solution

@bbhtt bbhtt closed this Aug 15, 2023
@bbhtt bbhtt deleted the fix-74 branch August 15, 2023 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add MPV and possibly Flatpak talk permissions
2 participants