Cannot get custom .desktop launcher to show its icon on the dock AND not duplicate when I run it
Olivia Zamora I created a desktop icon for my installation of Eclipse and was able to add it to the dock as a favorite using Add Custom Launcher to Ubuntu Dock. However when I favorited it, the icon on the dock does not use the set image in the .desktop file and also has a different name (I apologize for the link to the image, I just made this account and it wouldn't let me insert it). I named it "Eclipse" in the .desktop file and it shows up just as such on the desktop but when I added it to the dock, it shows up as "Eclipse IDE" with no icon.
ALSO, I defined the WM_CLASS to prevent it from duplicating the icon on the dock when I run it but it still duplicates AND when the new icon shows up on the dock when I run it, it shows up properly (with the proper name and icon).
Is there any way to correct both of these issues? I have used:
.desktop file contents below:
[Desktop Entry]
Name=Eclipse
Exec=~/Eclipse\ Installation/eclipse/eclipse %u
Type=Application
MimeType=x-scheme-handler/eclipse+command;x-scheme-handler/eclipse+mpc;
Icon=~/Eclipse Installation/eclipse/icon.xpm
StartupWMClass=EclipseAs a note: This is Eclipse for C++
1 Reset to default