I installed Plank dock and it's working pretty well, except for one thing. When I install Plank a Firefox button appears by default on the dock,
without a Firefox icon. The button is blank. If I launch Firefox from that blank button another instance of Firefox but with an icon appears on the dock. If I click on the icon-less button again, another Firefox instance launches, stacked on the newly created button on the dock. If I right click on the new button I see the two Firefox instances.
I looked at the details of what's going on and this is what I found.
The dock launch files are kept in /home/andy/.config/plank/dock1/launchers/ directory. Each launcher contains text like this example:
Code: Select all
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/thunderbird.desktop
However, Firefox doesn't work with a firefox.dockitem file like the above, that is
Code: Select all
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/firefox.desktop
creates the problem that I describe.
Firefox works properly if the firefox.desktop file (that is the default icon-less created by Plank) is
Code: Select all
[PlankDockItemPreferences]
Launcher=file:///home/andy/.local/share/applications/userapp-Firefox-B79MB2.desktop
This file however doesn't have the Firefox icon and hence my problem with the dock appearance plus the fact that a new dock item is created every time that I click on the Firefox button.