cli.output.player: add flatpak detection#6717
Merged
bastimeyer merged 2 commits intoNov 11, 2025
Merged
Conversation
- Add the `PlayerArgsMeta` metaclass and return the type dynamically based on the `path` argument - Replace `EXECUTABLES` list with an optional `EXECUTABLE` regex pattern
ceff858 to
49f0b05
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds player detection for players run via flatpak.
The
PlayerArgscurrently does only detect specific player executable names and then builds the player arguments accordingly, with the formatted title and player input.In order to support player titles for flatpak players though, the
--playerpath file name needs to be checked for"flatpak"and the--player-argsneed to be parsed accordingly for theruncommand:https://man7.org/linux/man-pages/man1/flatpak-run.1.html
The added flatpak app identifiers for VLC and mpv are
org.videolan.VLCandio.mpv.Mpv.We should probably add a note to the docs on how to run flatpak players. I'll have a look at this tomorrow.
Example (see the formatted title):