alan

ide

UPDATE:
Most of this is pointless on IDEA >= 11 and PyCharm >= 2, since a Tools -> Create desktop entry menu now exists and will let you do everything my launcher did. You'll need to reinstall it at every update – or just use the symlink trick I reccomended with the standalone launcher and edit the IDEA desktop entry.

I had already elaborated on this, and I still thank Dutchworks for their work, but I was yet to be satisfied with the status of dock awareness for Jetbrains IDEs; I tend to use multiple of those and I was highly dissatisfied with the way the dock grouped all my Java apps – that's caused by the fact that many Java apps based on Swing/AWT share the same WM_CLASS attribute, which is used bye the dock to tell one window from another – but you can read more on that from the Dutchworks blog page above.

The basic problem is:


Here I have launched IDEA and PyCharm at the same time, and they're grouped with the very same icon by docky – you need to right-click the icon and pick the proper subwindow, which is quite an hassle.

My previously created solution required to update the launcher and copy agent.jar at every update.

So what?

I just created a standalone launcher which creates a proper .desktop file in your .local/share/applications directory, does not modify original files and still allows IDEs to have their own distinct icon in the dock:



There I have both IDEA and PyCharm active at the same time, and they both work properly, and, whenever updating, you can just update the symlink (as suggested in the README from the GitHub repo) and you're done!

Multiple projects in the same DIE still share the same icon, but that doesn't seem to be changeable from the outside, it's something that Jetbrains should do; I'll open a ticket for that.

Enjoy!


#Ollivander #jetbrains #ide #launcher

UPDATED: IDEA entry.
UPDATED: Automatic agent add script.

I'm starting to like both PyCharm and RubyMine, two IDEs from IntelliJ, along with IDEA

I had some problems while they were both running on Linux using a dock – I like docky – since they're both Java apps and they got “merged” in a single icon, but then I found a solution - pull the agent into bin folder and just edit pycharm.sh, rubymine.sh and idea.sh this way, around the end of the file:




If you're lazy, or you're just tired of readding the agent every time your IDE gets updated, just download the agent and the adder script for IDEA, PyCharm or RubyMine to your bin directory and re-execute it every time your ide gets updated.

I was just missing a desktop file entry so they could show up in my menu; IntelliJ currently distributes their ides as .tar.gz archives, no .deb, no .rpm, so I just packed up two small entries and added them to ~/.local/share/applications:




Replace the PATH_TO_... and enjoy!


EDIT:
As a bonus, by just installing “wmctrl” you can easily setting global shortcuts for moving pycharm & rubymine IDEs on the current screen and putting them in the foreground:

wmctrl -x -R PyCharm
wmctrl -x -R RubyMine
          wmctrl -x -R IDEA

 In GNOME you can assign such commands as a global shortcuts via System -> Preferences -> Keyboard Shortcuts.

#Ollivander #ide #jetbrains