Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

Cannot get custom .desktop launcher to show its icon on the dock AND not duplicate when I run it

Writer 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:

Image of the name on the dock

.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=Eclipse

As a note: This is Eclipse for C++

1 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy