FAQ > OS > HOW TO > SHORTCUT

SHORTCUTS
A shortcut (or launcher) makes applications, processes, or data files quickly accessible. Shortcuts may be on the desktop, in the menu, in the panel, inside folders, etc. Shortcuts are useful wherever they provide faster, easier access to the things they point to.

Christian Sub-Menu

Shortcuts are "desktop entry files" that may be created and and edited with a text editor like Leafpad. The basic anatomy of a shortcut is as follows:

[Desktop Entry]
Encoding=UTF-8, or other encoding
Name=Name (keep this short)
Comment=When cursor hovers over it
Exec=application/process/path
Terminal=true or false
Type=Kind of the thing
Icon=name of (
and path to) icon
Categories=Where in the main menu
StartupNotify=true or false


[Desktop Entry] is the type of file it is; a desktop entry file (a shortcut).

Name is the on-screen name; what you'll see on the screen below the image on the desktop, or beside the (smaller) image in the menu. You'll likely want to keep the Name fairly short and/or spaced just right as it may get truncated on the Desktop and/or make your Menu, or Sub-Menu too wide.

Exec is the main function of the shortcut. What application, process, file or folder it runs and / or opens.

Comment is the short description of the shortcut that appears when hovering the cursor over it in the menu. You'll likely want to keep this fairly short as well.

Icon is the path to whatever icon you'd like to use. Icons that come with the operating system may be found in /usr/share/icons/ and /usr/share/pixmaps. These main icon folders are easily added to, but you may choose for your icon almost any image file in almost any location.

Terminal is whether or not this shortcut is to something that will run in a Terminal, like LXTerminal. The answer here depends on what you're making a shortcut to.

Categories is where in the menu the shortcut will be located; in which category/ies it will fall under.

All shortcuts are .desktop entry files. They must be saved as xxxx.desktop

12 Apostles Shortcut
Below is the shortcut to the 12 Apostles Game as shown in Leafpad. This shortcut's Exec function tells the SWF (Flash) file to open in Gnash. The shortcut(s) you create may be smaller, as you likely won't need to list so many versions of English.

[Desktop Entry]
Name=12 Apostles
Exec=gnash /usr/share/christian/12-apostles/The_Twelve_Apostles.swf
Comment=Quiz & Memory Game
Icon=/usr/share/christian/icons/The12.png
NoDisplay=false
Terminal=false
Categories=Christian;
StartupNotify=true
Type=Application
GenericName=12 Apostles
Name[AF]=12 Apostles
Name[en_AU]=12 Apostles
Name[en_CA]=12 Apostles
Name[en_GB]=12 Apostles
Name[KA]=12 Apostles
Name[MK]=12 Apostles
Name[ST]=12 Apostles
Name[TG]=12 Apostles
Name[TS]=12 Apostles
Name[en_US]=12 Apostles
Name[UZ]=12 Apostles
Name[en_ZA]=12 Apostles
Name[ZU]=12 Apostles
Comment[AF]=Quiz & Memory Game
Comment[en_AU]=Quiz & Memory Game
Comment[en_CA]=Quiz & Memory Game
Comment[en_GB]=Quiz & Memory Game
Comment[KA]=Quiz & Memory Game
Comment[MK]=Quiz & Memory Game
Comment[ST]=Quiz & Memory Game
Comment[TG]=Quiz & Memory Game
Comment[TS]=Quiz & Memory Game
Comment[en_US]=Quiz & Memory Game
Comment[UZ]=Quiz & Memory Game
Comment[en_ZA]=Quiz & Memory Game
Comment[ZU]=Quiz & Memory Game



MORE INFO ABOUT SHORTCUTS
Registered Categories for the menu in the Free Desktop Standards and the full Desktop Entry Specification are at freedesktop.org. Also see Add Application to the Menu and Edit the Menu [Ubuntu Community Help Wiki]. See additional descriptions and examples of shortcuts / .desktop entry files on the Linux LXDE Guide and Fun with Lubuntu. Check out the LXDE Forum for this how-to Create user's directories in LXDE/Lubuntu's programs menu.


Top