[GH-ISSUE #7134] MPV will not open #3496

Open
opened 2026-05-05 10:02:01 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @SomeoneWhoUsesGit on GitHub (Apr 11, 2026).
Original GitHub issue: https://github.com/netblue30/firejail/issues/7134

Description

When using the firejail profile with mpv, mpv will crash

Steps to Reproduce

with mpv installed, run sudo firecfg

Expected behavior

mpv should open or open the video clicked on

Actual behavior

mpv will just not open, it outright crashes.
Often it still is active when running firejail --list

Behavior without a profile

works as expected without a profile

Additional context

N/A

Environment

kernel - 6.19.11-1-cachyos
Cachyos
MPV 1:0.41.0-3
firejail 0.9.80

Checklist

  • I am using firejail 0.9.80 or later
  • [x ] I am using the full program path (e.g. firejail /usr/bin/vlc instead of firejail vlc; see https://github.com/netblue30/firejail/issues/2877)
  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local).
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • I have performed a short search for similar issues (to avoid opening a duplicate).
    • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • I used --profile=PROFILENAME to set the right profile. (Only relevant for AppImages)

Log

Cannot create an output.
Runing

firejail --profile=/etc/firejail/mpv.profile /usr/bin/mpv --player-operation-mode=pseudo-gui -- %U
it just crashes outright with no output

Originally created by @SomeoneWhoUsesGit on GitHub (Apr 11, 2026). Original GitHub issue: https://github.com/netblue30/firejail/issues/7134 ### Description When using the firejail profile with mpv, mpv will crash ### Steps to Reproduce with mpv installed, run sudo firecfg ### Expected behavior mpv should open or open the video clicked on ### Actual behavior mpv will just not open, it outright crashes. Often it still is active when running firejail --list ### Behavior without a profile works as expected without a profile ### Additional context N/A ### Environment kernel - 6.19.11-1-cachyos Cachyos MPV 1:0.41.0-3 firejail 0.9.80 ### Checklist <!-- Note: Items are checked with an "x", like so: - [x] This is a checked item. --> - [x] I am using firejail [0.9.80 or later](https://github.com/netblue30/firejail/tree/master/SECURITY.md) - [x ] I am using the full program path (e.g. `firejail /usr/bin/vlc` instead of `firejail vlc`; see `https://github.com/netblue30/firejail/issues/2877`) - [x] The issues is caused by firejail (i.e. running the program by path (e.g. `/usr/bin/vlc`) "fixes" it). - [x] I can reproduce the issue without custom modifications (e.g. globals.local). - [x] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [x] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] I have performed a short search for similar issues (to avoid opening a duplicate). - [x] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [x] I used `--profile=PROFILENAME` to set the right profile. (Only relevant for AppImages) ### Log Cannot create an output. Runing firejail --profile=/etc/firejail/mpv.profile /usr/bin/mpv --player-operation-mode=pseudo-gui -- %U it just crashes outright with no output
Author
Owner

@flingr commented on GitHub (Apr 11, 2026):

The mpv profile uses the quiet option by default:

76c1c8539a/etc/profile-m-z/mpv.profile (L4)

Try adding --ignore=quiet to your test command.

<!-- gh-comment-id:4229784911 --> @flingr commented on GitHub (Apr 11, 2026): The mpv profile uses the `quiet` option by default: https://github.com/netblue30/firejail/blob/76c1c8539a4cad4533719b484125e52eef4c66dc/etc/profile-m-z/mpv.profile#L4 Try adding `--ignore=quiet` to your test command.
Author
Owner

@rusty-snake commented on GitHub (Apr 11, 2026):

  • What file are you trying to play? Do other formats work?
  • Do you use hardware acceleration?
  • Is anything logged in journalctl?
  • Does it work to open the player without playing a file?
<!-- gh-comment-id:4229810266 --> @rusty-snake commented on GitHub (Apr 11, 2026): - What file are you trying to play? Do other formats work? - Do you use hardware acceleration? - Is anything logged in journalctl? - Does it work to open the player without playing a file?
Author
Owner

@SomeoneWhoUsesGit commented on GitHub (Apr 11, 2026):

The mpv profile uses the quiet option by default:

firejail/etc/profile-m-z/mpv.profile

Line 4 in 76c1c85
quiet

Try adding --ignore=quiet to your test command.

I do now have some output with my test command, I added the --ignore=quiet and --ignore=apparmor to it.

log

Reading profile /etc/firejail/mpv.profile
Reading profile /etc/firejail/allow-lua.inc
Reading profile /etc/firejail/allow-python2.inc
Reading profile /etc/firejail/allow-python3.inc
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-shell.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-player-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
firejail version 0.9.80

Seccomp list in: !set_mempolicy, check list: @default-keep, prelist: unknown,
Parent pid 2744, child pid 2745
43 programs installed in 82.44 ms
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: not remounting /run/user/1000/doc
Base filesystem installed in 64.44 ms
Seccomp list in: !set_mempolicy, check list: @default-keep, prelist: unknown,
Child process initialized in 256.15 ms

Parent is shutting down, bye...

end of log

  • What file are you trying to play? Do other formats work?

    • Do you use hardware acceleration?

    • Is anything logged in journalctl?

    • Does it work to open the player without playing a file?

I was just using the default mpv install, I have since added hwdec=auto to my conf file which has made no difference.
I have tried .mp4 and .mkv files.

I just double click them and I get the mpv icon flashing around my cursor for a good 5+ seconds before it aborts.
Usually if I open mpv via start menu it just opens without a video, fails there as well.

<!-- gh-comment-id:4229970135 --> @SomeoneWhoUsesGit commented on GitHub (Apr 11, 2026): > The mpv profile uses the `quiet` option by default: > > [firejail/etc/profile-m-z/mpv.profile](https://github.com/netblue30/firejail/blob/76c1c8539a4cad4533719b484125e52eef4c66dc/etc/profile-m-z/mpv.profile#L4) > > Line 4 in [76c1c85](/netblue30/firejail/commit/76c1c8539a4cad4533719b484125e52eef4c66dc) > quiet > > Try adding `--ignore=quiet` to your test command. I do now have some output with my test command, I added the --ignore=quiet and --ignore=apparmor to it. ## log Reading profile /etc/firejail/mpv.profile Reading profile /etc/firejail/allow-lua.inc Reading profile /etc/firejail/allow-python2.inc Reading profile /etc/firejail/allow-python3.inc Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-shell.inc Reading profile /etc/firejail/whitelist-common.inc Reading profile /etc/firejail/whitelist-player-common.inc Reading profile /etc/firejail/whitelist-usr-share-common.inc Reading profile /etc/firejail/whitelist-var-common.inc firejail version 0.9.80 Seccomp list in: !set_mempolicy, check list: @default-keep, prelist: unknown, Parent pid 2744, child pid 2745 43 programs installed in 82.44 ms Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set. Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Warning: not remounting /run/user/1000/doc Base filesystem installed in 64.44 ms Seccomp list in: !set_mempolicy, check list: @default-keep, prelist: unknown, Child process initialized in 256.15 ms Parent is shutting down, bye... ## end of log > * What file are you trying to play? Do other formats work? > > * Do you use hardware acceleration? > > * Is anything logged in journalctl? > > * Does it work to open the player without playing a file? I was just using the default mpv install, I have since added hwdec=auto to my conf file which has made no difference. I have tried .mp4 and .mkv files. I just double click them and I get the mpv icon flashing around my cursor for a good 5+ seconds before it aborts. Usually if I open mpv via start menu it just opens without a video, fails there as well.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#3496
No description provided.