I am working with two different versions of Eclipse. Due to conflicts between the plugins I decided to install both of these versions separately, which works perfectly fine except one little issue. I am working with Ubuntu-Gnome (14.04 LTS) and I edited the .desktop file of one version like this:
[Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=Custom Eclipse Icon=custom-icon Path=/opt/custom-eclipse/ Exec=/opt/custom-eclipse/custom-eclipse StartupNotify=true StartupWMClass=custom-eclipse
Now, what bugs me is the following:
The application starts up with the custom name, WM_Class and icon as expected, yet, when the application has finished starting up these attributes change for some reason and it is grouped with the other eclipse installation by the gnome-shell.
If I enter
xprop WM_CLASS in terminal and click on the window it returns
WM_CLASS(STRING) = "Eclipse", "Eclipse".
I just recently switched from a Unity desktop to a GNOME shell and using Unity the windows were not grouped together.
I updated my ubuntu version to 15.04 and my gnome-shell to 3.14.4 but unfortunately the problem remains. I am starting to think that this could only be fixed by editing the Eclipse source code…