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?
Use IDE to create launcher. Open Tools -> Create Desktop Entry...
Alternate method:
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=1.0
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
-
5This right here is one of the reasons Linux has such a limited user base. – Webnet Jun 30 '13 at 0:04
-
2@Webnet This right here is an example of someone who has the wrong information. See the other answer. – Andrew Mao Sep 18 '13 at 22:52
-
-
This is no longer necessary as PhpStorm can now be installed as a snap, which does this for you. See my answer here for details. – colan May 25 '18 at 12:58
Run Tools
—> Create Desktop Entry
in top menu of IDE.
-
2
-
2
-
-
1
-
3
Try changing the two below lines in the file
~/.local/share/applications/jetbrains-phpstorm.desktop
Icon=/home/$USER/Downloads/PhpStorm-138.2000.2262/bin/webide.png
Exec="/home/$USER/Downloads/PhpStorm-138.2000.2262/bin/phpstorm.sh" %f
-
This worked to change the existing launcher icon to now launch 8 instead of 7. – JoshP Oct 9 '14 at 13:07
-
I noticed the same desktop file is also placed in /usr/share/applications (I probably installed for all users on the system). You might have to edit this file as well! – karimkorun Mar 19 '16 at 15:56
-
On KDE this answer worked for me. I've installed phpstorm using snap and the icon extension in this path was
svg
. I created a newpng
icon and follow your instructions. Now it shows properly. Thanks – Alwin Kesler Jul 19 '18 at 10:03 -
Go to Tools-> "Create Desktop Entry"
-
2May be need restart session if entry not appeared after creation. – Павел Шорохов Jul 14 '16 at 23:10
-
The exact same answer has been given 2,5 years ago: askubuntu.com/a/223833/297583. – Stephan Vierkant Jul 4 '18 at 19:57
By far the easiest solution is to open PhpStorm, where it will show in the launcher. Then right click on it in the launcher and select "Lock to Launcher" and your done.
You do not need to do anything. Just run PhpStorm/PyCharm for the first time from a command line with
/path/PhpStorm/bin/phpstorm.sh
And after it will start a popup will appear asking you for a password to add it to a launcher. When you will submit your password an ico will appear in the launcher.
As of 2017-12-14, you can install PhpStorm as a snap, either from the Ubuntu Software application, or the command line. See Install PhpStorm with Snaps for details.
This will automatically add a launcher icon to your desktop.
-
Snap's install brought a
svn
icon which seems doesn't render properly on KDE. I followed @Young answer with a createdpng
icon and worked – Alwin Kesler Jul 19 '18 at 10:06