I am using Elementary OS Freya.
I want to add custom bash script to plank (dock).

How can I do it ?


Create a .desktop file in your ~/.local/share/applications folder for the script (or in usr/share/applications for system wide access). E.g.:

[Desktop Entry]
Name=My bash script
Comment=bash script to do custom stuff
Exec=/path/to/bash/script %U
Terminal=false (or true)

It will show up in the Other category for slingshot. Run it and then select "Keep in dock" when it is running.

  • 1
    you can also drag & drop icons from slingshot to plank, without running them ;) – jena Nov 22 '18 at 9:49

to save the .desktop file you have to add in Terminal:

sudo chmod 777 programName.desktop

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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