I am using Elementary OS Freya.
I want to add custom bash script to plank (dock).
How can I do it ?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
.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 Type=Application Exec=/path/to/bash/script %U Icon=/path/to/some/fancy/icon Terminal=false (or true) Categories=Other;
It will show up in the
Other category for slingshot. Run it and then select "Keep in dock" when it is running.
to save the
.desktop file you have to add in Terminal:
sudo chmod 777 programName.desktop