a modifed .desktop file for the eap doesn't associate RM windows correctly on ubunutu 20.04

I copied the main rm generated .desktop file, modified it to point to the eap install, and added it to favorites.

[Desktop Entry]
Version=1.0
Type=Application
Name=RubyMine Next
Icon=/opt/rubymine/next/bin/rubymine.svg
Exec="/opt/rubymine/next/bin/rubymine.sh" %f
Comment=The Most Intelligent Ruby and Rails IDE
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-rubymine
StartupNotify=true

However ubuntu associates RM windows launched via it with the main RM icon (original .desktop file). This used to work properly in 14.04.

Can anything be done to the .desktop file to fix window assoc?

0
5 comments

Could you please attach the desktop entry file generated by RubyMine EAP. In addition, what desktop environment do you use?

 
 
0

Stock Ubuntu 20.04 with gnome.

The generated EAP .desktop is the same as the current release, other than the path. Since they overwrite each other, I copy and modify them (just the path and name) so they can both be in favorites. But having both icons is pointless if the launched windows aren't properly associated.

[Desktop Entry]
Version=1.0
Type=Application
Name=RubyMine
Icon=/opt/rubymine/RubyMine-212.4746.3/bin/rubymine.svg
Exec="/opt/rubymine/RubyMine-212.4746.3/bin/rubymine.sh" %f
Comment=The Most Intelligent Ruby and Rails IDE
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-rubymine
StartupNotify=true
0

It appears to be using the StartupWMClass to associate.

Is it possible to give it something else to disambiguate?

Or configure the window class for a given rm install so that eap would have a different one?

0

We have a corresponding issue on our tracker so could you please add your vote there:

https://youtrack.jetbrains.com/issue/IDEA-271358

0

Can you ask someone to investigate a workaround? That bug can be closed as not a bug or ignored indefinitely, but a convenient way of launching multiple versions is needed.

0

Please sign in to leave a comment.