Open teohhanhui opened 3 years ago
I'm keeping this package sandboxed. Media playback is security sensitive.
Users can customize their installation to be less sandboxed if they wish.
Is it possible to at least expose everything in the current directory?
--filesystem="$PWD":ro
Actually, a more configurable --file-forwarding
, being able to forward the entire directory tree at the requested path would be great.
Is it possible to at least expose everything in the current directory?
It requires absolute paths at startup, but sure.
Actually, a more configurable --file-forwarding, being able to forward the entire directory tree at the requested path would be great.
Yes that would be ideal.
I've tried everything but still can't get this to work. Apparently gio open
does not use the Exec
in the .desktop
file, so I'm unable to override the command.
https://developer.gnome.org/DBusApplicationLaunching/
dbus-monitor
:If I do e.g.
flatpak run io.github.celluloid_player.Celluloid '/run/media/teohhanhui/Transcend TS2TSJ25H3B/Anime/86/[SubsPlease] 86 - Eighty Six - 01 (720p) [B63E54FC].mkv'
or
gio launch ~/.local/share/applications/io.github.celluloid_player.Celluloid.desktop '/run/media/teohhanhui/Transcend TS2TSJ25H3B/Anime/86/[SubsPlease] 86 - Eighty Six - 01 (720p) [B63E54FC].mkv'
it works, as those bypass the DBus activation.
Commenting out
DBusActivatable=true
in the .desktop
file works around the problem... But there really should be more user control over DBus actions. (If I understand correctly, this automatic use of xdg-document-portal
is default behaviour of GTK+?)
flatpak override --user --filesystem=host io.github.celluloid_player.Celluloid
would bypass the problem.
flatpak override --user --filesystem=host io.github.celluloid_player.Celluloid would bypass the problem.
I'm already using a similar override:
flatpak override --user --filesystem=host:ro io.github.celluloid_player.Celluloid
It does not work for DBus-activated GAction
s... Somehow xdg-desktop-portal
/ GTK+ decides to hijack it anyway.
Please refer to the dbus-monitor
output in https://github.com/flathub/io.github.celluloid_player.Celluloid/issues/28#issuecomment-861587856
The default setup using
--file-forwarding
is very broken. Many scripts can't work properly like that, e.g. https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/autoload.luaEven the auto-loading of external subtitle files (sub-auto) is broken.