Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 476  / 3 Years ago, tue, july 20, 2021, 2:41:31

My specs: Ubuntu 20.04.3 with Gnome Shell on Wayland.
Notebook Acer Aspire 5 with AMD Ryzen 7 5700U.


For my work, I want to run Firefox through the sandboxing utility firejail.
I created a custom *.desktop file to launch the "firejailed" firefox and placed it in ~/local/share/applications.


In the *.desktop file, I specified a custom icon (the blue Firefox icon that is used for the nightly builds) and the custom launcher uses this blue icon. Ok, fine.


When I run the launcher, the "firejailed" Firefox starts and runs correctly but the icon that is displayed in the window overview and in the task bar (or dock) is the standard Firefox icon (orange/yellow) not the blue one I specified.


What I have to do so that the running "firejailed" Firefox is displayed in Gnome Shell with the blue icon?


Here is how my *.desktop file looks like:


[Desktop Entry]
Version=1.1
Type=Application
Name=Firefox Work
Comment=Web Browser configurated for Work
Icon=firefox-nightly
Exec=firejail --private=/home/nuri/.firejail-firefox/ firefox -no-remote
Actions=
Categories=Network;
StartupNotify=true

More From » icons

 Answers
4

Have this specific instance of firefox launch with a specific WMClass by adding the option


--class=CLASS

where CLASS is a name of your choosing, e.g. fjfox.


Then connect your custom .desktop laucher to that WMCLass by adding a line as


StartupWMClass=CLASS

See the answer of nuri for a full example of the desktop file.


[#855] Wednesday, July 21, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
socelebrate

Total Points: 274
Total Questions: 123
Total Answers: 124

Location: Saint Helena
Member since Mon, Jan 16, 2023
1 Year ago
socelebrate questions
Mon, May 15, 23, 02:00, 1 Year ago
Tue, Nov 30, 21, 09:49, 2 Years ago
Sun, Dec 12, 21, 23:29, 2 Years ago
;