flathub / io.github.celluloid_player.Celluloid

https://flathub.org/apps/details/io.github.celluloid_player.Celluloid
3 stars 12 forks source link

Cannot create ipc server socket file #34

Open dyskette opened 2 years ago

dyskette commented 2 years ago

Hi.

I'm trying to use celluloid with the option input-ipc-server=/tmp/gmpv-socket and idle=yes, but the socket file that is supposed to be created at /tmp/gmpv-socket it's not there.

I tried this with the non-flatpak version of celluloid and, even simply using --idle --input-ipc-server=/tmp/gmpv-socket, in the "mpv extra options, creates the file immediately when saving.

So, this is probably a bug in the flatpak version.

TingPing commented 2 years ago

By design flatpak doesn't have access to the host /tmp (very scary dir). You can bypass this with flatpak override --user io.github.celluloid_player.Celluloid --filesystem=/tmp

TingPing commented 2 years ago

Alternatively the socket could be created in a more private directory that is safer and that permission could be added here by default.