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"
.
edit: I just recently switched from a Unity desktop to a GNOME shell and using Unity the windows were not grouped together.
another edit: 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...
.desktop
file names (not theName=
line, but the actual file names)? where are they located?/usr/share/applications
. one is calledeclipse.desktop
and one is calledcustom-eclipse.desktop
xprop WM_CLASS
givesWM_CLASS(STRING) = "Eclipse", "Eclipse"
in both cases. But my running instances are not grouped.WM_CLASS
and icon that I defined in the.desktop
file, but after starting up the "running" window has changed properties. It might also have to do with the ubuntu or the desktop version since I recently switched from unity to a gnome desktop and in unity the windows were not grouped together. (on that note I might just add that to the question)