Multiple Firefox profiles with multiple icons in the taskbar

Hi everyone!

I am currently trying to achieve the following: Multiple Firefox profiles with multiple icons in the taskbar.

I already succeeded in separating the profiles in the task bar but I’m not able to pin the icon to the taskbar and change the icon in the taskbar. Maybe one of you wonderful people can help me!

This is the current state:

Bild1

I achieved this by creating two .desktop files with different „--class“ parameters in the Firefox startup command. My .desktop files look as following:

[Desktop Entry]
Version = 1.5
Type = Application
Name = Firefox – P1
GenericName = Firefox - P1
Comment = Firefox - P1
Terminal = false
Exec = firefox --no-remote -P P1 --class firefox_p1
StartupWMClass=firefox_p1
Categories=WebBrowser;
Keywords=web;browser;internet;
Actions=new-window;new-private-window;profile-manager-window;

[Desktop Action new-window]
Name=Open a New Window
Exec=firefox -P P1 -no-remote --class firefox_p1 --new-window %u

[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=firefox -P P1 -no-remote --name firefox_p1 --private-window %u

My problem is that I don’t get the submenu by right clicking on the Firefox icon for P2. (P1 currently is the default firefox profile)

Default icon:

Bild2

P1 icon:

Bild3

As I don’t have the „Add to favourites“ button, I cannot add P1 to the taskbar. Changing the icon in the taskbar would be great but it’s fine if it’s not possible. :blush:

I’m using Zorin Core 16 with an up to date system on a Ryzen Processor with a GTX 1050 and kernel 5.15.0-75

Any ideas?

Regarding the icon issue. You need to set which Icon you want to use in its .desktop file if you made a seperate .desktop file instead.

Hi Storm,

thanks for your message!

I tried to set it via the "Icon" Parameter in the .desktop file but this only changes the icon in the desktop, not the taskbar. I placed the icon png file in ~/.icons and used Icon=myicon.png

You need to set the full PATH to the custom icon or else it will use your current theme icon library and looking for an icon name myicon.png

Hi again,

I changed the line to the absolute path:

Icon=/home/myuser/.icons/myicon.png

But unfortunately, it still shows the Firefox icon in the taskbar. The icon on the desktop is still correct. I didn't do any relevant changes to the Zorin settings but I'm thinking of reinstalling Zorin with the Pro version instead of the Core one and try again. But i believe this won't really help. Do you have any other suggestions?

Thanks for your help!

Just ignore the snap stuff.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.