[GH-ISSUE #1574] firecfg: Remove DBusActivatable from .desktop files #1045

Closed
opened 2026-05-05 07:21:35 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @SkewedZeppelin on GitHub (Sep 23, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1574

Currently certain programs when launched do not spawn under Firejail and are unsandboxed. This can be simply fixed by removing DBusActivatable=true from their corresponding desktop file. firecfg already rewrites hardcoded paths in .desktop files so this should take too much to do.

This would allow the following applications to always launch sandboxed

  • gedit
  • totem
  • pithos
  • peek
  • baobab
  • nemo (not that its useful)
  • nautilus (^)

and these programs if they ever got profiles

  • gnome-screenshot
  • gnome-disks
  • cheese

and probably many more.

In the mean time, users can run the following command as a workaround

sudo sed -i "s|DBusActivatable=true|DBusActivatable=false|" /usr/share/applications/*.desktop
Originally created by @SkewedZeppelin on GitHub (Sep 23, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1574 Currently certain programs when launched do not spawn under Firejail and are unsandboxed. This can be simply fixed by removing `DBusActivatable=true` from their corresponding desktop file. firecfg already rewrites hardcoded paths in .desktop files so this should take too much to do. This would allow the following applications to always launch sandboxed - gedit - totem - pithos - peek - baobab - nemo (not that its useful) - nautilus (^) and these programs if they ever got profiles - gnome-screenshot - gnome-disks - cheese and probably many more. In the mean time, users can run the following command as a workaround ``` sudo sed -i "s|DBusActivatable=true|DBusActivatable=false|" /usr/share/applications/*.desktop ```
gitea-mirror 2026-05-05 07:21:35 -06:00
Author
Owner

@netblue30 commented on GitHub (Sep 25, 2017):

We have a fix in. Before you try it, remove all the files from ~/.local/share/applications directory.

<!-- gh-comment-id:331855417 --> @netblue30 commented on GitHub (Sep 25, 2017): We have a fix in. Before you try it, remove all the files from ~/.local/share/applications directory.
Author
Owner

@SkewedZeppelin commented on GitHub (Sep 25, 2017):

Thanks! It seems a bit broken however...

  • It seems to have regressed in that there are a few programs with hardcoded paths that it didn't fix: remmina, xonotic*
  • And it also doesn't seem to detect DBusActivatable in all of them and only fixed 3 out of 6 of them: missing totem, pithos, peek
<!-- gh-comment-id:331872888 --> @SkewedZeppelin commented on GitHub (Sep 25, 2017): Thanks! It seems a bit broken however... - It seems to have regressed in that there are a few programs with hardcoded paths that it didn't fix: remmina, xonotic* - And it also doesn't seem to detect DBusActivatable in all of them and only fixed 3 out of 6 of them: missing totem, pithos, peek
Author
Owner

@netblue30 commented on GitHub (Sep 25, 2017):

Print the exec and dbus lines creating problems here. I tried pithos on debian stable, it doesn't have the dbus line. What distro are you using?

<!-- gh-comment-id:331885269 --> @netblue30 commented on GitHub (Sep 25, 2017): Print the exec and dbus lines creating problems here. I tried pithos on debian stable, it doesn't have the dbus line. What distro are you using?
Author
Owner

@SkewedZeppelin commented on GitHub (Sep 25, 2017):

Here are all the .desktops that are having issues
https://gist.github.com/SpotComms/e94c7c9275f7c30921c55f8cde9e9365

And Pithos only got DBusActivatable recently, abdadf9fae

<!-- gh-comment-id:331887664 --> @SkewedZeppelin commented on GitHub (Sep 25, 2017): Here are all the .desktops that are having issues https://gist.github.com/SpotComms/e94c7c9275f7c30921c55f8cde9e9365 And Pithos only got DBusActivatable recently, https://github.com/pithos/pithos/commit/abdadf9fae8afe40f4594154943596dc4017d1af
Author
Owner

@netblue30 commented on GitHub (Sep 25, 2017):

I think I got all of them, thanks for the files. Try again and we'll do another round of fixes if necessary.

<!-- gh-comment-id:331916069 --> @netblue30 commented on GitHub (Sep 25, 2017): I think I got all of them, thanks for the files. Try again and we'll do another round of fixes if necessary.
Author
Owner

@SkewedZeppelin commented on GitHub (Sep 25, 2017):

It works!

<!-- gh-comment-id:331922917 --> @SkewedZeppelin commented on GitHub (Sep 25, 2017): It works!
Author
Owner

@reagentoo commented on GitHub (Sep 5, 2024):

$ grep -ri DBusActivatable /usr/share/applications/
/usr/share/applications/org.gnome.Terminal.Preferences.desktop:DBusActivatable=false
/usr/share/applications/org.gnome.Calendar.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.Boxes.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.Characters.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.DiskUtility.desktop:DBusActivatable=true
/usr/share/applications/ca.desrt.dconf-editor.desktop:DBusActivatable=true
/usr/share/applications/io.bassi.Amberol.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.TextEditor.desktop:DBusActivatable=false
/usr/share/applications/org.gnome.font-viewer.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.Screenshot.desktop:DBusActivatable=true
/usr/share/applications/de.haeckerfelix.Fragments.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.Ptyxis.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.Extensions.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.Maps.desktop:DBusActivatable=true
/usr/share/applications/io.github.celluloid_player.Celluloid.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.Shell.PortalHelper.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.Builder.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.Weather.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.clocks.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.Software.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.Nautilus.desktop:DBusActivatable=true
/usr/share/applications/org.gnome.Console.desktop:DBusActivatable=true

Any new workarounds in 2k24?

<!-- gh-comment-id:2331786502 --> @reagentoo commented on GitHub (Sep 5, 2024): ``` $ grep -ri DBusActivatable /usr/share/applications/ /usr/share/applications/org.gnome.Terminal.Preferences.desktop:DBusActivatable=false /usr/share/applications/org.gnome.Calendar.desktop:DBusActivatable=true /usr/share/applications/org.gnome.Boxes.desktop:DBusActivatable=true /usr/share/applications/org.gnome.Characters.desktop:DBusActivatable=true /usr/share/applications/org.gnome.DiskUtility.desktop:DBusActivatable=true /usr/share/applications/ca.desrt.dconf-editor.desktop:DBusActivatable=true /usr/share/applications/io.bassi.Amberol.desktop:DBusActivatable=true /usr/share/applications/org.gnome.TextEditor.desktop:DBusActivatable=false /usr/share/applications/org.gnome.font-viewer.desktop:DBusActivatable=true /usr/share/applications/org.gnome.Screenshot.desktop:DBusActivatable=true /usr/share/applications/de.haeckerfelix.Fragments.desktop:DBusActivatable=true /usr/share/applications/org.gnome.Ptyxis.desktop:DBusActivatable=true /usr/share/applications/org.gnome.Extensions.desktop:DBusActivatable=true /usr/share/applications/org.gnome.Maps.desktop:DBusActivatable=true /usr/share/applications/io.github.celluloid_player.Celluloid.desktop:DBusActivatable=true /usr/share/applications/org.gnome.Shell.PortalHelper.desktop:DBusActivatable=true /usr/share/applications/org.gnome.Builder.desktop:DBusActivatable=true /usr/share/applications/org.gnome.Weather.desktop:DBusActivatable=true /usr/share/applications/org.gnome.clocks.desktop:DBusActivatable=true /usr/share/applications/org.gnome.Software.desktop:DBusActivatable=true /usr/share/applications/org.gnome.Nautilus.desktop:DBusActivatable=true /usr/share/applications/org.gnome.Console.desktop:DBusActivatable=true ``` Any new workarounds in 2k24?
Author
Owner

@rusty-snake commented on GitHub (Sep 5, 2024):

  • Your list contains a lot of programs w/o profile.
  • This issue is closed.
  • This issue is old.
  • The open bug (#2624) is about not detecting all .desktop files.

Any new workarounds in 2k24?

sed "s/DBusActivatable=true/DBusActivatable=false/g"

<!-- gh-comment-id:2331797862 --> @rusty-snake commented on GitHub (Sep 5, 2024): - Your list contains a lot of programs w/o profile. - This issue is closed. - This issue is old. - The open bug (#2624) is about not detecting all .desktop files. > Any new workarounds in 2k24? `sed "s/DBusActivatable=true/DBusActivatable=false/g"`
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#1045
No description provided.