Intellij launcher not working for unity?

In /usr/share/applications I created:

intellij.desktop :

 #!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=false Exec=/path/To/idea.sh" Name[en_US]=Intellij Name=Intellij Icon=/path/to/intellij.png 

Then drag it to the Unity Launcher. I click on it, but nothing happens. How can I make it work?

JAVA_HOME configured correctly, other Java applications (e.g. Eclipse) work and click idea.sh




My configuration:

  • Ubuntu 12.10 64-bit (working)
  • Oracle JDK 1.7
  • IntelliJ Community 12
+50
intellij-idea ubuntu ubuntu-unity
Jan 20 '13 at 11:55
source share
9 answers

You can use "tools"> "create desktop entry" in IntelliJ itself.

+145
Jan 20 '13 at 19:22
source share

The event with the creation of a record on the desktop is still an error because the launcher does not read the JDK_HOME configuration.

therefore, after creating an entry on the desktop, right-click on the launch bar and select properties, then add bash -i before the double quote in the text of the exp command: the command [bash -i "/ home / me / ides / idea / bin / idea.sh "% f]

+10
Aug 18 '13 at 14:30
source share
  • Open a terminal in the folder / path / idea / bin
  • Launch IntelliJ with ./idea.sh
  • Tools β†’ Create Desktop Entry
  • Close IntelliJ
  • In the terminal, run nautilus as admin ( gksudo nautilus )
  • Go to / usr / share / applications
  • Drag a new icon for IntelliJ into your launcher
+8
Feb 13 '15 at 5:21
source share

Usually I just create a runner in the regular menu (right-click on the Start menu and select "Edit"), which points to something like bash -i ~/bin/idea/bin/idea.sh

I use bash -i to read .bashrc where I set JAVA_HOME correctly. It works like any other program.

bin / idea is always a link to the latest version, so I never need to recreate this menu item.

+6
Jan 20 '13 at 19:26
source share

For starters, intellij Idea from launcher
1. create the idea.desktop file

  [Desktop Entry] Name=IntelliJ IDEA Comment=IntelliJ IDEA IDE Exec=/home/rkj/Downloads/idea-IC-129.713/bin/idea.sh Icon=/home/rkj/Downloads/idea-IC-129.713/bin/idea.png Terminal=false StartupNotify=true Type=Application Categories=Development;IDE; 


2. add the permission file to the executable file (right-click on the file in the "Permissions" tab)
3. copy this file to / usr / share / applications (sudo cp idea.desktop / usr / share / applications) 4. Copy this file to /.local/share/applications (sudo cp idea.desktop / .local / share / applications)

Now check the dash

+4
03 Oct '13 at 19:05
source share

create jetbrains-datagrip.desktop file

 sudo gedit /usr/share/applications/jetbrains-datagrip.desktop [Desktop Entry] Version=1.0 Type=Application Name=DataGrip Icon=/home/gilcierweb/DataGrip/bin/product.png Exec="/home/gilcierweb/DataGrip/bin/datagrip.sh" %f Comment=Develop with pleasure! Categories=Development;IDE; Terminal=false StartupWMClass=jetbrains-datagrip 
+1
Jun 22 '16 at 0:13
source share

Just post if some other people run into this problem.

For me, all I needed to do was right-click on the record and go to the properties and on the Application tab in the Work path section, I placed the full path in the bin folder.

For example /home/teodorvecerdi/Development/idea-IU-172.3317.76/bin/ .

+1
Jul 27 '17 at 20:52
source share

Another alternative:

  • cd /bin
  • ln -s <path to idea.sh> idea - now it is available in dashes under the "idea"
  • open a dash , enter an idea and launch IntelliJ
  • right click the icon on the sidebar and add it to the starter
0
May 25 '15 at 20:59
source share

To have only one IntelliJ icon in Launcher, you need to add the following line to your idea .desktop file:

 StartupWMClass=jetbrains-idea 

My working sample idea.desktop file looks like this:

 [Desktop Entry] Type=Application Terminal=false Name=Idea13 Icon=/usr/local/bin/idea13/bin/idea.png Exec=/usr/local/bin/idea13/bin/idea.sh StartupWMClass=jetbrains-idea 
0
Jun 17 '15 at 6:19 06:19
source share



All Articles