mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6197] mpv: cannot open files via dolphin #3218
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3218
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aardbol on GitHub (Feb 6, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6197
Description
Opening videos in mpv via Dolphin doesn't work. mpv doesn't even start. But opening mpv and dragging and dropping the video from the same location works and the video will be played.
Steps to Reproduce
Browse to the folder. Open the video file and see that mpv won't start.
Run mpv video in terminal. In terminal error:
Error: cannot access profile file: globals.localThe behavior works in the Downloads folder though
Expected behavior
Video plays
Actual behavior
Nothing.
Behavior without a profile
Same behavior
Additional context
The folder containing video files has been whitelisted and set read-only.
Environment
Arch with latest firejail
Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
LC_ALL=C firejail /path/to/programOutput of
LC_ALL=C firejail --debug /path/to/program@ghost commented on GitHub (Feb 6, 2024):
Thanks for reporting. We'll need a bit more info on your setup though. Are you running Dolphin sandboxed? How does your mpv.desktop look like (either from /usr/share/applications or ~/.local/share/applications)? In other words, do you use firecfg at all?
The mpv profile doesn't include disable-xdg.inc, so it's unclear why your ~/Downloads folder is working while other paths under your user's /home aren't. Can you post that globals.local here please?
@rusty-snake commented on GitHub (Feb 6, 2024):
Is this a "normal" filesystem or some kind of FUSE like a samba share?
Impossible.
@aardbol commented on GitHub (Feb 7, 2024):
local FS yes. BTRFS to be specific.
You're right, the problem is a bit different:
firejail --noprofile mpv op.mp4:@aardbol commented on GitHub (Feb 7, 2024):
Yes Dolphin is also sandboxes, via
firecfg, no custom local config.In
/usr/share/applications:mpv.local:
@ghost commented on GitHub (Feb 7, 2024):
This is a common mistake. Always use the full path to the application's executable (in this case /usr/bin/mpv). If you don't, the command actually tries to execute
firejail firejail mpv ..., which throws firejail into confusion. I'm not saying this is the cause of your issue, but it sure makes things much harder to debug.How exactly did you add dolphin to firecfg? It isn't in /etc/firejail/firecfg.config by default.
Our mpv.profile already has
private-bin env,mpv,python*,waf,youtube-dl,yt-dlp. If you want to add other binaries to it, just useprivate-bin lsin mpv.local. The private-bin option is cumulative.Please make these changes and post output from
@aardbol commented on GitHub (Feb 8, 2024):
Good eye, it's not sandboxed. I didn't know about that file.
Same problem as before if given the relative path of the video. Absolute path works.
@ghost commented on GitHub (Feb 8, 2024):
Out of ideas here. I'd check (the Exec=... line in) ~/.local/share/applications/mpv.desktop, but I assume you've already done so. And
mimeapps.list(both in ~/.config & ~/.local/share/applications). Hopefully someone with actual KDE/Dolphin experience chimes in.@aardbol commented on GitHub (Mar 5, 2024):
I have the same issue with gwenview opening an image from a mounted cryptomator container. Path:
/home/*/.local/share/Cryptomator. Disabling gwenview in firecfg makes it work again@rashadgasimli commented on GitHub (May 17, 2024):
However, mpv can play videos and musics from /home/$USER/Videos and /home/$USER/Music and gwenview also can show images from /home/$USER/Pictures.