With XFCE you can right click on the Desktop and click Create Launcher.
Otherwise you can just open a text editor and use this as a template.
- Code: Select all
Save the file as a .desktop
file where you want it to appear. e.g. ~/Desktop/myscript.desktop
You can look into /usr/share/icons/ for the names of various icons. Don't include an extension. e.g. text-x-script.png
would be Icon=text-x-script
If you script is executable you don't have to included the interpreter. For shell scripts you'll want the interpreter to be sh
You can place it in additional categories by using a semi-colon seperated list. e.g. System; Accessories;
If you want it to appear in your menu place the .desktop
file in ~/.local/share/applications
Remember to enclose pathnames with spaces in them in quotes.