Super User is a question and answer site for computer enthusiasts and power users. 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

Using docky under ubuntu, I want to be able to run bash scripts.

When I drag and drop a script from nautilus to docky, the script appears on docky. But clicking on the script icon opens the script in gedit.

Was wondering if anyone knows how to configure docky to run the script.

share|improve this question
Whomever marked a negative against my question, it would probably be more constructive if you actually left a comment as to why... – Ben Jun 12 '12 at 11:52
up vote 4 down vote accepted

I would try creating a .desktop file to run the script and drag that onto Docky. The easiest way might be to:

(1) Drag one of your menu items off the main menu and onto your desktop. This will create a .desktop file on the desktop.

(2) Right click the icon and choose Properties.

(3) Change the line that begins with Command to say "bash /path/to/your/script".

(4) Select Close.

(5) Drag that icon to Docky.

If right-clicking on the icon doesn't come up with a Properties editor, just edit in gEdit or Emacs or your favorite text editor.

share|improve this answer
Thanks, awesome advice. I was trying to run intellij IDE. I created a file containing the following, and dragged to docky. Worked! [Desktop Entry] Type=Application Name=Intellij Exec=/home/ben/bin/idea-IU-117.418/bin/ Icon=/home/ben/bin/idea-IU-117.418/bin/idea.png – Ben Jun 12 '12 at 11:50

This works on Ubuntu 14.04 LTS. Took an existing 'dot' keyboard file I had and edited:


Dragged it to Docky and then the script is run in a terminal window. If you don't want to see the terminal window set Terminal=false.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .