Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have installed ubuntu (11.04).

I installed phpstorm which is simply an archive for you to extract and shove in your /opt directory.

To run it you would use /opt/PhpStorm-103.243/bin/PhpStorm.sh

In unity I had created a launcher on my desktop.

Now I have installed gnome-3(gnome-shell),

And I have nothing in my desktop.

So how do I run phpstorm quickly? Can I get it to show up in "applications"?

share|improve this question
    
Crazy, that's nearly a useability bug that this needs to be explained with the two possible solutions below and not "just works" with the right click and add favorite, and the below is done automatically under the hood... thanks for asking anyway, so I found the solution quickly :) –  Henning Jun 22 '13 at 9:04

9 Answers 9

up vote 18 down vote accepted

I worked it out :D

In Terminal

gedit ~/.local/share/applications/<Your App Name>.desktop

In gedit
Here you should edit: Note that the below comments are best guess, feel free to correct me

Version=1.0                                #not sure what this does
Name=My Awesome App                        #Obviously the application name
GenericName=Awesome App                    #Difference between this and Name?
Comment=This app is awesome!               #The tooltip
Exec=/path/to/sh/file/file.sh              #The command you want to execute
Terminal=false                             #Should the app run in terminal
Icon=/opt/PhpStorm-103.243/bin/webide.png  #The pretty picture :D
Type=Application                           #Um?
Categories=Network;WebBrowser;             #Categoies the app should be in
MimeType=text/html;                        #Mime types the launcher can open
Name[en_NZ]=My Awesome App                 #Localized version of above info
GenericName[en_NZ]=Awesome App             #Localized version of above info
Comment[en_NZ]=This app is awesome!        #Localized version of above info

Save the file.
Now your application will show in searches :)

share|improve this answer
3  
That is still wrong. You cannot edit anything in /usr/share/* - that's owned and controlled by the packages themselves. You NEED to put custom launchers in ~/.local/share/applications, otherwise you might end up with lots of issues. –  jrg Apr 28 '11 at 22:16
    
Did all the above, did not work, nothing shows when searching for the application (GNOME Shell 3.4.1). –  m0skit0 May 6 '13 at 14:58
3  
This right here is one of the reasons that Linux has such a limited user base. If we want your average Joe to get started on Linux, these kinds of things need to be simpler. –  Webnet Jun 30 '13 at 0:06

PhpStorm now has a feature to create a launcher for you. It's available under:

Tools -> Create Desktop Entry...

Ubuntu 12, PhpStorm 6 /Tools/Create Desktop Entry...

This will add PhpStorm to the system menu for the current user or for all users. The created launcher is also compatible with Gnome Shell.

Ubuntu 12, PhpStorm and Unity launcher

share|improve this answer

Alacarte application can help you. You can also find it under "Main Menu". Use the Software Center or

sudo apt-get install alacarte

Just choose a folder (not very important if you have Gnome 3, unless you use some menu extension) and then on the right New Item. Here you can give the new launcher a name and browse to its location. You can also provide a logo by clicking on the logo.

share|improve this answer
2  
This could be the fastest alternative for anyone with a similar issue - at least for me it was. –  Scorchio Dec 1 '11 at 23:28
    
Thank you very much :D –  Log1c Mar 26 at 14:30

I'm using the gnome-shell in Ubuntu 11.10 and created my launcher for PhpStorm using the same method in Gnome 3 that I would have used in Gnome 2: I used the Main Menu application.

Launcher Properties

The application shows up in search and can be added to Favorites without any hiccups.

share|improve this answer
    
This is by far the best solution I've seen. Though ideally PHPStorm would come with it by default in some way. –  Webnet Jun 30 '13 at 0:09
    
Dup of installing and using Alacarte... –  mlissner May 20 at 17:03

Getting the program to show up in the search seems to be difficult at best, which I'm sure will get better as Gnome3 matures and progresses. (The state of Gnome3 right now will certainly not be the same in a month.)

In order to add an application as a favorite (so that it shows up in the launcher on the left of the "Activities" screen), simply hit Alt+F2, and run the application or script you want. While it is running, enter the "Activities" screen, and drag the running application to the favorites. I have used this only for programs that use a GUI, but feel free to play with it.

Hope that helps.

I will add: I'm not in love with Gnome3 as it currently stands, but it's a step ahead of Unity, and I'm excited to see where it goes in the future. One great thing about open software, it moves fast. We should see a rapid progression in changing and adding features. These are critical times in the evolution of the desktop metaphor.

share|improve this answer

You could install the MyLauncher extension. It will produce a menu on the panel which you can edit by right-clicking. Just about anything can go in it: links, folders, shell scripts, etc.

MyLauncher Gnome Shell Extension

share|improve this answer

For 12.10

gnome-desktop-item-edit --create-new ~/Lauchers/for/example/

or

sudo gnome-desktop-item-edit --create-new /usr/share/applications/
share|improve this answer

I'm not familiar with Gnome3, but with an older Gnome, you can right-click on the application menu, and click on Edit Menus - that'll allow you to modify the menu tree. Select the submenu you want your launcher to appear in, then click New Item and point it at the path to your shell script.

share|improve this answer

if PhpStorm.sh is a terminal application Find a method to create new launcher or lense and populate it with following command

gnome-terminal -x sh -c "<path to PhpStorm.sh>"

else if it is a greaphical shell script using zenity or equivalent use similar method to create and populate launcher with following commad

sh -c "<path to PhpStorm.sh>"
share|improve this answer
2  
phpstorm is a web developer gui. –  Hailwood Apr 28 '11 at 5:32
    
Thank you I never knew that. :) . Thogh I wanted to give a generelized answer. I believe there is one other way by pressing alt+f2 and running command once will make it available in the history. –  puneet Apr 28 '11 at 8:34
    
Still cant find a way to create a new launcher! –  Hailwood Apr 28 '11 at 20:38

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.