In its most basic form:
.desktop file (paste the text below in an empty file):
save the file as
~/.local/share/applications and drag it from there on to the launcher.
Running scripts from a .desktop file
If you run a script in the
Exec= line from a launcher like this, it works like in the terminal:
If the script is not executable:
If the script is executable, just:
If the script is executable, the language extension is not strictly needed. However, if you use it on the file, also use it in the command.
Running more complicated shell commands from a .desktop file
Exec=/bin/bash -c "your_complicated_command_here"
(command inside quotes)