Posts Tagged ‘icon’

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 🙂