Mpv/vlc flatpak wont start from terminal after updating to 39

I have a alias, however after the rebase it does not work anymore. I can launch mpv from gnome but not from the terminal, same with vlc. It finds something, because I get the -h option when I try to run “mpv”, however it does not start the application.

I have tried reinstalling the flathub mpv but no success.

alias mpv=“flatpak run io.mpv.Mpv”

Any ideas why? Thanks

mpv, like its predecessor mplayer, doesn’t really have a GUI. The .desktop file runs basically:

flatpak run io.mpv.Mpv --player-operation-mode=pseudo-gui

Are you saying that mpv /path/to/videofile doesn’t work?

I use streamlink, and it was always working before. E.g. I wrote “tw grubby” to play the stream since I had this alias:

alias tw=‘f(){ streamlink Twitch best -p “flatpak run io.mpv.Mpv”; unset -f f;}; f’

user@fedora:~$ tw grubby
[cli][info] Found matching plugin twitch for URL Twitch
[cli][info] Available streams: audio_only, 160p (worst), 360p, 480p, 720p60, 1080p60 (best)
[cli][info] Opening stream: 1080p60 (hls)
[cli][info] Starting player: flatpak run io.mpv.Mpv
error: Failed to start player: flatpak run io.mpv.Mpv (Player executable not found)
[cli][info] Closing currently open stream…

This is a change in streamlink. It now expects --player to be an executable.

Something like -p flatpak -a 'run io.mpv.Mpv' might work, or you can use a script. Flatpak provides one in /var/lib/flatpak/exports/bin/. You could add that directory to PATH or:

ln -s /var/lib/flatpak/exports/bin/io.mpv.Mpv ~/.local/bin/mpv

Also, please wrap terminal output in ``` (or use the Preformatted text tool).