poniedziałek, 12 maja 2014

How to lock IntelliJ IDEA on Unity launcher

Most straightforward way is running the IntelliJ from command line and once opened "right click" on icon appeared on the launcher and click "Lock to Launcher".

Now you can go to terminal (Ctrl+Atl+T) and edit newly created desktop file ~/.local/share/applications/jetbrains-idea-ce.desktop

The key point is to fix Exec entry - should be path to the ./idea.sh start script. Note that if you have not JAVA_HOME set in your environment, you need set one as shown below.
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=IntelliJ IDEA
Icon=jetbrains-idea-ce.png
Path=/home/krma/Downloads/idea-IC-135.690/bin
Exec=env JAVA_HOME=/usr/lib/jvm/java-8-oracle /home/krma/Downloads/idea-IC-135.690/bin/idea.sh
StartupNotify=false
StartupWMClass=jetbrains-idea-ce
OnlyShowIn=Unity;
X-UnityGenerated=true
That is basically all.

Brak komentarzy:

Prześlij komentarz