Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GNOME Settings: vlc does not appear when trying to set default media player #5925

Closed
5 of 7 tasks
MrQvest opened this issue Jul 26, 2023 · 8 comments
Closed
5 of 7 tasks
Labels
notourbug The issue is valid, but it isn't directly caused by (or cannot be fixed by) firejail

Comments

@MrQvest
Copy link

MrQvest commented Jul 26, 2023

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

@glitsj16 glitsj16 added the firecfg Anything related to firecfg and not firejail itself label Jul 26, 2023
@glitsj16
Copy link
Collaborator

glitsj16 commented Jul 26, 2023

Have you seen #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.

@MrQvest
Copy link
Author

MrQvest commented 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

@rusty-snake
Copy link
Collaborator

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 #5876 so you can create persistent overrides for problems like this.

#5245

@MrQvest
Copy link
Author

MrQvest commented 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

@rusty-snake
Copy link
Collaborator

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

@rusty-snake rusty-snake added the notourbug The issue is valid, but it isn't directly caused by (or cannot be fixed by) firejail label Jul 26, 2023
@MrQvest
Copy link
Author

MrQvest commented Jul 26, 2023

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

@MrQvest
Copy link
Author

MrQvest commented 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?

@rusty-snake
Copy link
Collaborator

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.

@MrQvest MrQvest closed this as completed Jul 26, 2023
@rusty-snake rusty-snake closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2023
@glitsj16 glitsj16 removed the firecfg Anything related to firecfg and not firejail itself label Jul 26, 2023
@kmk3 kmk3 changed the title VLC does not appear in GNOME Settings app when trying to set default media player GNOME Settings: vlc does not appear when trying to set default media player Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notourbug The issue is valid, but it isn't directly caused by (or cannot be fixed by) firejail
Projects
None yet
Development

No branches or pull requests

3 participants