In Linux system, it is found that many applications are downloaded as compressed packages. Although the main program can be used after decompression, there is no shortcut or very inconvenient. Unlike Windows, adding shortcuts to Linux is not that simple.

1. Open any text editor and type the following (firefox is used as an example) :

[Desktop Entry] Name= Firefox Name[zh_CN]= Firefox - Browser Comment=visit the Internet Comment[zh_CN]= Access the Internet Version=1.0 Exec=/home/swsk33/ app/Firefox/Firefox Path=/home/swsk33/ app/Firefox Icon=/home/swsk33/ app/Firefox/Fox.png Terminal=false Type=Application Categories=Network StartupNotify=trueCopy the code

Field Description:

  • Name= Application name
  • Name[zh_CN]= The name of the application displayed in the Chinese language (optional)
  • Commet= Application Description (Optional)
  • Commet[zh_CN]= Description of application display in Chinese language (optional)
  • Version= Version number (optional)
  • Exec= Click and run the command. Generally, enter the path of the executable file
  • Path= Run path of the application program (or command), usually in the executable file folder (optional)
  • Icon= Application icon, can be the image location of the icon, can also be the executable file path of the application because some executable files come with ICONS (optional)
  • Terminal= Whether to open on terminal, generally false for window applications, true for command line applications (optional)
  • Type= type, usually Application
  • Categories= Application category, can write multiple values separated by semicolons, see the following type table (optional)
  • StartupNotify= boot prompt, usually true (optional)

Categories correspond to the following values:

value meaning
Network Network applications
Development Programming development
Office Office to learn
AudioVideo or Player Music appreciation/video playback
Graphics or 2 dgraphics Graphic images
Game or ArcadeGame The game is entertainment
Viewer Reading the translation
The Utility or System System management

2, save as desktop file and move to/usr/share/applicationsdirectory