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
[Desktop Entry]
Version=1.0
Name=<NAME>
Comment=<COMMENT>
Icon=<ICONNAME>
Terminal=true
Exec=<INTERPRETER> <PATH_TO_SCRIPT>
Type=Application
Categories=Accessories;
Save the file as a
.desktop file where you want it to appear. e.g.
~/Desktop/myscript.desktopYou 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-scriptIf 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/applicationsRemember to enclose pathnames with spaces in them in quotes.

“Gosh, you've... really got some nice toys here.”