Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wonder how to create an icon on Dash panel on the left side of the desktop, to run the following combination of two commands

killall nautilus

My Ubuntu is 12.04.


share|improve this question
you might find this useful as well:… – Glutanimate Sep 30 '12 at 5:18

1) Create *.desktop file in /usr/share/applications/

gksudo gedit /usr/share/applications/NAME OF LAUNCHER.desktop

2) Paste below text

[Desktop Entry]
Exec=killall nautilus && UBUNTU_MENUPROXY= nautilus

3) Change ICON to your icon path.

4) Change NAME OF LAUNCHER to the name you want.

5) Save the file and exit.

6) This will create a launcher in the dash. Click on the dash and search for the launcher name. Then drag the launcher to the bar to pin it.

Hope this helps,


share|improve this answer
If you don't feel comfortable working with root privileges and/or want the launcher to only be available to your user, you can use gedit ~/.local/share/applications instead of 1). – Glutanimate Sep 30 '12 at 5:17
Thanks! (1) Where are default icons in 12.04? I want to reuse some. (2) "Change NAME OF LAUNCHER to the name you want." What does "NAME OF LAUNCHER" mean? – Tim Sep 30 '12 at 12:37

Your Answer


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.