netblue30 / firetools

Firejail GUI
GNU General Public License v2.0
222 stars 33 forks source link

"firejail --list" does not show hardlinked firefox #64

Open shmu26 opened 2 years ago

shmu26 commented 2 years ago

I made a hard link to start firefox in firejail: sudo ln -s /usr/bin/firejail /usr/local/bin/firefox when I run firejail --list I don't get any results but when I run which firefox I get /usr/local/bin/firefox

Manjaro, firejail 0.9.70-1

rusty-snake commented 2 years ago

Did you crate a hardlink or a softlink? (Your command creates a softlink.) Hardlinks do not work because both links are the same file.

How did you start firefox? Was there an already running firefox instance?

shmu26 commented 2 years ago

So it is a softlink, then, if that is what my command creates... I started firefox by clicking on its icon in the applications menu. There was no instance of firefox running.

Now I tried starting it by double-clicking in the icon in Firetools, and firejail --list shows it properly.

shmu26 commented 2 years ago

I wonder if this has to do with wayland. I am running Gnome 42 with wayland.

rusty-snake commented 2 years ago

If manjaro uses the firefox packages from arch, you need to patch the .desktop file.

shmu26 commented 2 years ago

Yes. patching .desktop files, as per the Arch Wiki, was the answer. Thanks!