-
Notifications
You must be signed in to change notification settings - Fork 584
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
firecfg does not detect all .desktop files for cleaning #2624
Comments
IMHO a good way to fix this is that firecfg scan in all .desktop files in /usr/share/applications for the Exec line. |
@rusty-snake Firecfg already does that, and it handles lower- and uppercase filenames. Also, nautilus does have a profile. I don't use firecfg but for fun I installed firejail from git master in an Arch Linux systemd-nspawn container. When running |
@glitsj16 I can reproduce the report exactly, it is indeed a problem. I think I saw a similar issue long ago on Arch when it was first implemented, where it would ignore certain .desktops. Even in the original implementation it was an issue #1574 (comment) |
As I say I don't know how firecfg does that internaly (I can't C).
Uhh, yes, your right.
Yes for baobab, nautilus and gedit it works.
Not yet (later I wil do this with an git version). But I can't find an commit in https://github.com/netblue30/firejail/commits/master/src/firecfg/desktop_files.c that change there something. |
@rusty-snake Don't worry about it too much. @SkewedZeppelin can reproduce, so you found a bug. Nice find! |
@rusty-snake I can reproduce now too (originally got the working/failing examples from your OP mixed-up as you pointed out). After some more testing I can only conclude that There's more going wrong than the
The other applications you mentioned indeed fail because they don't make it thru the checks in desktop_files.c during execution of the Unrelated but nonetheless problematic (at least to me as a non-firecfg user) is that |
@rusty-snake Just pushed a temporary fix. Lets keep this open until a proper fix is available. Thanks again for reporting! |
@rusty-snake It is indeed. I'm collecting info to try to fix firecfg, but it will take a few days at least. Thanks for the input 👍 . |
@glitsj16 I have written something in python, I have to test it and will post it tomorrow. |
Quick difffirecfg:
firecfg.py:
|
@rusty-snake I'll have to do some more testing but your python script seems to work fine. It's too bad that firecfg bugs haven't been getting the attention they need. Hopefully this will change soon. |
Nitpick for persistency with other profiles that have the comment about netblue30#2624.
* drop redundant noblacklist noblacklist ${HOME}/.vscode-oss already exists in included code.profile * remove newline Nitpick for persistency with other profiles that have the comment about #2624.
Firecfg can replace
DBusActivatable=true
withfalse
in .desktop files (#1574), but does not recognize all .desktop files belonging to a programm.OS: Fedora Workstation 29 (GNOME)
Firejail: 0.9.57
Example where it occurs:
org.gnome.Builder.desktop
gnome-builder
org.gnome.Logs.desktop
gnome-logs
org.gnome.Maps.desktop
gnome-maps
org.gnome.Epiphany.desktop
epiphany
org.gnome.clocks.desktop
gnome-clocks
Looks like no
gnome-
or a uppercase letter after theorg.gnome.
is an issue. (I don't know how firecfg scan for .desktop files).Example where it not occurs:
org.gnome.gedit.desktop
gedit
org.gnome.baobab.desktop
baobab
ca.desrt.dconf-editor.desktop
dconf-editor
org.gnome.Cheese.desktop
cheese
Alsonautilus
(org.gnome.Nautilus.desktop
) is cleaned up, although it does not have a firejail profile.The text was updated successfully, but these errors were encountered: