mpv.el icon indicating copy to clipboard operation
mpv.el copied to clipboard

Flatpak version of mpv

Open bmp opened this issue 1 year ago • 5 comments

As I am on an immutable distribution, I have mpv installed through flatpak. My mpv command is therefore flatpak run io.mpv.Mpv. Is there a place I could configure this to use the flatpak version of mpv?

bmp avatar Jan 26 '24 17:01 bmp

I also have an alias in my .bashrc as alias mpv='flatpak run io.mpv.Mpv', but it doesn't work in mpv.el

bmp avatar Jan 27 '24 06:01 bmp

Is anyone else facing this issue?

bmp avatar Feb 04 '24 13:02 bmp

Did you try customizing the mpv-executable variable in emacs?

aluaces avatar Mar 11 '24 08:03 aluaces

Yes, and it didn't help at all.

bmp avatar Mar 13 '24 07:03 bmp

I see. This is where it is used, so it expects a single executable name.

https://github.com/kljohann/mpv.el/blob/2e0234bc21a3dcdf12d94d3285475e7f6769d3e8/mpv.el#L128

Either you create an executable that calls flatpak, or you patch that mpv-start function to call flatpak and pass the rest as arguments: "run" "io.mpv.Mpv".

aluaces avatar Mar 13 '24 08:03 aluaces