OK, I have a fix, but maybe not so elegant:
1. Go to:
Code: Select all
/home/demo/.local/share/applications/
2. Find a file that says something like:
3. Open this file in a text-editor (I used Featherpad). You should see this:
Code: Select all
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=true
Exec=/opt/firefox/firefox-bin %u
Name=Firefox
Comment=Custom definition for Firefox
4. Under "Name=Firefox", add the following line:
Make sure "firefox" is NOT capitalized.
5. Save the changes
6. Go to:
Code: Select all
/home/demo/.config/plank/dock1/launchers/
7. Make a backup of "firefox.dockitem": Open a terminal and type:
Code: Select all
cp firefox.dockitem firefox.dockitem.old
8. Open in a text editor (e.g. featherpad):
9. Change the link of the "Launcher" line to point to the file you edited in .local/share/applications:
Code: Select all
[PlankDockItemPreferences]
Launcher=file:////home/demo/.local/share/applications/userapp-Firefox-MGW631.desktop
10. The new Firefox Icon should appear in Plank, bright, crisp and clear! Now it is this:
Plank.png
It also shows the little dot underneath, showing that it is open (since I am writing this now on the forum, via Firefox), and, most importantly, there is only 1 Firefox Icon in Plank now!
There may be a more elegant way to do this, but this has worked for me on MX23-Alpha2, and I forgot that I had done all of this already for my MX21 (Xfce & KDE) installs!
If anyone can suggest a more elegant, modular, or best-practices-way, please let me know!
