Articles

Jetbrains in Unity integration

In Java, Ubuntu on 02/07/2012 by weirdfellow Tagged: , , , , , ,

I really really love products by . Those guys really know what a developer expects, needs and they deliver. However, the IDEs (I have been using IntelliJ IDEA, as well as PhpStorm) don’t integrate with Unity that well – it’s not possible to pin the icon to launch bar, the windows do not merge and you get duplicate icons etc.

To tackle this problem, you can create custom launchers and drop them into /usr/local/share/applications (you might need to create this directory first).

IntelliJ IDEA.desktop

[Desktop Entry]
Name=IntelliJ IDEA Community Edition
GenericName=Java Editor
Comment=Develop with pleasure!
Exec=/usr/local/programs/idea-ce/bin/idea.sh
Icon=/usr/local/programs/idea-ce/bin/idea.png
Type=Application
MimeType=text/plain;
Categories=Development;
StartupNotify=true
Terminal=false
NoDisplay=false
StartupWMClass=jetbrains-idea-ce

PhpStorm.desktop

[Desktop Entry]
Name=PhpStorm
GenericName=PHP Editor
Comment=Develop with pleasure!
Exec=/usr/local/programs/phpstorm/bin/phpstorm.sh
Icon=/usr/local/programs/phpstorm/bin/webide.png
Type=Application
MimeType=text/plain;
Categories=Development;
StartupNotify=true
Terminal=false
NoDisplay=false
StartupWMClass=jetbrains-phpstorm

The important thing is the StartupWMClass – it allows Unity to identify the windows and connect them to icon in the launcher, so that they merge nicely… Small thing, but makes me so much happier 🙂

Advertisements

3 Responses to “Jetbrains in Unity integration”

  1. There’s also Tools | Create Desktop Entry which does the same

  2. How about Unity Menu integration in PhpStorm6 ?

  3. I got here by accident but you finally solved my problem with Idea desktop shortcut. Brilliant!
    The only thing I had to do is to call:
    chmod +x Idea.desktop

    as Unity prevents from running non executable desktop files. Sounds obvious but I forgot it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: