FS#69697 - [firefox] Supplied .desktop file, firejail and plank don't work together.

Attached to Project: Arch Linux
Opened by Deposite Pirate (dpirate) - Thursday, 18 February 2021, 17:56 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 20 February 2021, 04:36 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi,

No matter how you start firefox, Plank will always link to
/usr/share/applications/firefox.desktop and since
/usr/lib/firefox/firefox is hardcoded there, next time
you start firefox from plank it won't be firejailed.
I tried every trick, but the only thing that works to get
plank to start a firejailed firefox is to directly edit
/usr/share/applications/firefox.desktop and edit out
/usr/lib/firefox everywhere.

Modifying package installed files is not a great idea.

Perhaps plank should behave otherwise. Maybe it can't
because of X limitations or something or it would
involve adding too much code complexity. Anyway
it just won't pick up the
~/.local/share/applications/firefox.desktop file
created by firecfg.

Brave which has Exec=brave in it's .desktop file works
fine with plank and firejail.

My suggestion to fix this problem is to add a
/usr/bin/firefox symlink to /usr/lib/firefox/firefox and then
not hardcode /usr/lib/firefox/firefox directly in the .desktop
file. Then it will just work like Brave and the
/usr/local/bin/firefox symlink to firejail will be started
instead of /usr/lib/firefox/firefox if it is there.

Package versions:

firefox 85.0.2-1
firejail 0.9.64.4-1
plank 0.11.89-2
This task depends upon

Closed by  Doug Newgard (Scimmia)
Saturday, 20 February 2021, 04:36 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#57766   FS#62181 
Comment by Michel Koss (MichelKoss1) - Friday, 19 February 2021, 20:58 GMT
Changing Exec=/usr/lib/firefox/firefox to Exec=firefox in desktop file would work just fine without making any symlinks.

Loading...