[GH-ISSUE #5925] GNOME Settings: vlc does not appear when trying to set default media player #3132

Closed
opened 2026-05-05 09:46:03 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @MrQvest on GitHub (Jul 26, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5925

Description

VLC, when configured with sudo firecfg, disappears from GNOME Settings app when trying to set a default media or music player

Steps to Reproduce

  1. Run sudo firecfg and leave its default configuration
  2. Open GNOME Settings Default Apps panel
  3. VLC is nowhere to be found when trying to set it as default

Expected behavior

  1. Run sudo firecfg and leave its default configuration
  2. Open GNOME Settings Default Apps panel
  3. VLC should be listed together with other apps that also have a firejail configuration. E.g. Firefox

Additional context

If the .desktop file located in ~/.local/share/applications/ is deleted, VLC appears normally in GNOME Settings App

Environment

  • Fedora Linux 38
  • firejail version 0.9.72

Checklist

  • The issue is caused by firejail
  • 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

Output of LC_ALL=C firejail /path/to/program

LC_ALL=C firejail /usr/bin/vlc    
Reading profile /etc/firejail/vlc.profile
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/whitelist-common.inc
Reading profile /etc/firejail/whitelist-player-common.inc
Reading profile /etc/firejail/whitelist-run-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 14996, child pid 15000
6 programs installed in 83.05 ms
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning: NVIDIA card detected, nogroups command ignored
Warning: cleaning all supplementary groups
Warning: NVIDIA card detected, nogroups command ignored
Warning: cleaning all supplementary groups
Warning: NVIDIA card detected, nogroups command ignored
Warning: NVIDIA card detected, nogroups command ignored
Warning: cleaning all supplementary groups
Child process initialized in 211.84 ms
VLC media player 3.0.19 Vetinari (revision )
[000056000a258400] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
qt.qpa.qgnomeplatform.theme: The desktop style for QtQuick Controls 2 applications is not available on the system (qqc2-desktop-style). The application may look broken.

(vlc:13): dbind-WARNING **: 21:31:46.248: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
[000056000a33b6b0] qt interface error: Unable to load extensions module
[000056000a2f3b00] main playlist: playlist is empty

Output of LC_ALL=C firejail --debug /path/to/program

https://gist.github.com/MrQvest/7b07fa02e99919980c2766c840892f37

Originally created by @MrQvest on GitHub (Jul 26, 2023). Original GitHub issue: https://github.com/netblue30/firejail/issues/5925 <!-- See the following links for help with formatting: https://guides.github.com/features/mastering-markdown/ https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax --> ### Description VLC, when configured with `sudo firecfg`, disappears from GNOME Settings app when trying to set a default media or music player ### Steps to Reproduce 1. Run `sudo firecfg` and leave its default configuration 2. Open GNOME Settings Default Apps panel 3. VLC is nowhere to be found when trying to set it as default ### Expected behavior 1. Run `sudo firecfg` and leave its default configuration 2. Open GNOME Settings Default Apps panel 3. VLC should be listed together with other apps that also have a firejail configuration. E.g. Firefox ### Additional context If the `.desktop` file located in `~/.local/share/applications/` is deleted, VLC appears normally in GNOME Settings App ### Environment - Fedora Linux 38 - firejail version 0.9.72 ### Checklist <!-- Note: Items are checked with an "x", like so: - [x] This is a checked item. --> - [x] The issue is caused by firejail - [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). - [ ] 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 <details> <summary>Output of <code>LC_ALL=C firejail /path/to/program</code></summary> <p> ``` LC_ALL=C firejail /usr/bin/vlc Reading profile /etc/firejail/vlc.profile 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/whitelist-common.inc Reading profile /etc/firejail/whitelist-player-common.inc Reading profile /etc/firejail/whitelist-run-common.inc Reading profile /etc/firejail/whitelist-runuser-common.inc Reading profile /etc/firejail/whitelist-var-common.inc Parent pid 14996, child pid 15000 6 programs installed in 83.05 ms Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set. Warning: NVIDIA card detected, nogroups command ignored Warning: cleaning all supplementary groups Warning: NVIDIA card detected, nogroups command ignored Warning: cleaning all supplementary groups Warning: NVIDIA card detected, nogroups command ignored Warning: NVIDIA card detected, nogroups command ignored Warning: cleaning all supplementary groups Child process initialized in 211.84 ms VLC media player 3.0.19 Vetinari (revision ) [000056000a258400] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. qt.qpa.qgnomeplatform.theme: The desktop style for QtQuick Controls 2 applications is not available on the system (qqc2-desktop-style). The application may look broken. (vlc:13): dbind-WARNING **: 21:31:46.248: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown [000056000a33b6b0] qt interface error: Unable to load extensions module [000056000a2f3b00] main playlist: playlist is empty ``` </p> </details> <details> <summary>Output of <code>LC_ALL=C firejail --debug /path/to/program</code></summary> <p> <!-- If the output is too long to embed it into the comment, create a secret gist at https://gist.github.com/ and link it here. --> https://gist.github.com/MrQvest/7b07fa02e99919980c2766c840892f37 </p> </details>
gitea-mirror 2026-05-05 09:46:03 -06:00
  • closed this issue
  • added the
    notourbug
    label
Author
Owner

@ghost commented on GitHub (Jul 26, 2023):

Have you seen https://github.com/netblue30/firejail/discussions/5074 yet? Sounds like you might need to remove the --started-from-file part in the Exec= line. Can you post both vlc.desktop files here please? Would be interesting to see what firecfg did to it exactly.

There is a recent PR that implements firecfg.d so you can create persistent overrides for problems like this. It's still in draft mode and you would need to build firejail from git.

<!-- gh-comment-id:1650961260 --> @ghost commented on GitHub (Jul 26, 2023): Have you seen https://github.com/netblue30/firejail/discussions/5074 yet? Sounds like you might need to [remove the --started-from-file](https://github.com/netblue30/firejail/issues/836) part in the `Exec=` line. Can you post both vlc.desktop files here please? Would be interesting to see what firecfg did to it exactly. There is a recent PR that implements [firecfg.d](https://github.com/netblue30/firejail/pull/5876) so you can create persistent overrides for problems like this. It's still in draft mode and you would need to [build firejail from git](https://github.com/netblue30/firejail/wiki/Using-firejail-from-git#fedora).
Author
Owner

@MrQvest commented on GitHub (Jul 26, 2023):

# converted by firecfg
[Desktop Entry]

[...]

Exec=vlc --started-from-file %U
TryExec=/usr/bin/vlc
Icon=vlc
Terminal=false
Type=Application
Categories=AudioVideo;Player;Recorder;

Removing --started-from-file does not seem to add it as an entry in GNOME Settings unfortunately

If needed, I'm editing this to put more of the .desktop file

<!-- gh-comment-id:1651997392 --> @MrQvest commented on GitHub (Jul 26, 2023): ``` # converted by firecfg [Desktop Entry] [...] Exec=vlc --started-from-file %U TryExec=/usr/bin/vlc Icon=vlc Terminal=false Type=Application Categories=AudioVideo;Player;Recorder; ``` Removing `--started-from-file` does not seem to add it as an entry in GNOME Settings unfortunately If needed, I'm editing this to put more of the .desktop file
Author
Owner

@rusty-snake commented on GitHub (Jul 26, 2023):

Is this a firejail bug or a GNOME bug? I.e. if you copy the .desktop from use/share to your home, does it work?

There is a recent PR that implements https://github.com/netblue30/firejail/pull/5876 so you can create persistent overrides for problems like this.

#5245

<!-- gh-comment-id:1652088586 --> @rusty-snake commented on GitHub (Jul 26, 2023): Is this a firejail bug or a GNOME bug? I.e. if you copy the .desktop from use/share to your home, does it work? > There is a recent PR that implements https://github.com/netblue30/firejail/pull/5876 so you can create persistent overrides for problems like this. #5245
Author
Owner

@MrQvest commented on GitHub (Jul 26, 2023):

I copied vlc.desktop from /usr/share/applications/ over to ~/.local/share/applications/
It results in the exact same outcome. Both files are exactly the same upon opening and comparing them

<!-- gh-comment-id:1652130899 --> @MrQvest commented on GitHub (Jul 26, 2023): I copied `vlc.desktop` from `/usr/share/applications/` over to `~/.local/share/applications/` It results in the exact same outcome. Both files are exactly the same upon opening and comparing them
Author
Owner

@rusty-snake commented on GitHub (Jul 26, 2023):

Sounds like a GNOME issue. Did you tried to logout and login again?

<!-- gh-comment-id:1652155940 --> @rusty-snake commented on GitHub (Jul 26, 2023): Sounds like a GNOME issue. Did you tried to logout and login again?
Author
Owner

@MrQvest commented on GitHub (Jul 26, 2023):

Yeah. Just did that and it still does not appear in the settings

<!-- gh-comment-id:1652162348 --> @MrQvest commented on GitHub (Jul 26, 2023): Yeah. Just did that and it still does not appear in the settings
Author
Owner

@MrQvest commented on GitHub (Jul 26, 2023):

If this has nothing to do with firejail I guess I'll just delete the .desktop file for now. Do you know how I can open an issue to the GNOME team regarding this?

<!-- gh-comment-id:1652165332 --> @MrQvest commented on GitHub (Jul 26, 2023): If this has nothing to do with firejail I guess I'll just delete the .desktop file for now. Do you know how I can open an issue to the GNOME team regarding this?
Author
Owner

@rusty-snake commented on GitHub (Jul 26, 2023):

The issue tracker for the GNOME settings UI can be found at https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues. However AFAIK GNOME recommends that you open issues downstream (https://bugzilla.redhat.com/bugzilla/) if you installed it from there.

<!-- gh-comment-id:1652176699 --> @rusty-snake commented on GitHub (Jul 26, 2023): The issue tracker for the GNOME settings UI can be found at https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues. However AFAIK GNOME recommends that you open issues downstream (https://bugzilla.redhat.com/bugzilla/) if you installed it from there.
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#3132
No description provided.