Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have PhpStorm on my PC, to launch it I have to go to phpstorm/bin/ and launch phpstorm.sh, how can I pin this to launcher so that I dont have to go into folders every time?

share|improve this question

2 Answers

up vote 2 down vote accepted

You need to create a application launcher first.

Installing gnome-panel

 sudo apt-get install --no-install-recommends gnome-panel

To create launcher

sudo gnome-desktop-item-edit /usr/share/applications/ --create-new

This will open up a "Create Launcher" window

Type: Application
Name: PhpStorm
Command: /bin/bash path_to/phpstorm.sh
Comment: Any Comment

This will create a launcher file in /usr/share/applications directory. Now double click and open the file.

Once the file is launched. You can see the process in the unity launcher. Right click on the icon in the unity launcher and click "Lock to Launcher"

Alternatively you can create a .desktop file

Found this .desktop file here. I haven't tested it. Try your luck.

[Desktop Entry]                                                                  
Version=4.0.1                                                                   
Type=Application                                                                
Name=JetBrains PhpStorm                                                         
Exec=/opt/PhpStorm/bin/phpstorm.sh %f                                           
Icon=/opt/PhpStorm/bin/webide.png                                               
Comment=Develop with pleasure!                                                  
Categories=Development;IDE;                                                     
Terminal=false                                                                  
StartupNotify=true                                                              
StartupWMClass=jetbrains-phpstorm  
share|improve this answer
Thank you very much! :) – Chelios Nov 22 '12 at 12:30

Run "Tools" — "Create Desktop Entry" in top menu of IDE.

share|improve this answer
+1 This is far simpler and works perfectly. – Richard Holloway Feb 5 at 11:50
Seems not to work in 13.04 :( – Nathan J. Brauer May 1 at 18:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.