Ubuntu Create desktop shortcuts
Some of the programs that you install in Ubuntu do not create shortcuts, each time through the absolute path is more complex, you can create a shortcut on the desktop, so easy to start each time. I'm creating a shortcut for Chrome to share with you here.
First copy the following code into a file with the file name in the format: Xxxx.desktop. XXXX for you arbitrarily take the name, in order to understand the principle of simplicity. is usually the name of the program.
[Desktop Entry]
Categories=development;
comment[zh_cn]=
Comment=
Exec=/usr/bin/google-chrome
Genericname[zh_cn]=chrome
Genericname=chrome
Icon=/opt/google/chrome/product_logo_128.png
Mimetype=
Name[zh_cn]=chrome
Name=chrome
Path=
Startupnotify=true
Terminal=false
Type=application
X-dbus-servicename=
X-dbus-startuptype=
X-kde-substituteuid=false
X-kde-username=owen
It is noteworthy that Exec refers to the path of the executable file, which is the icon used by the shortcut. Name is the names of the shortcuts. If the path to the executable file cannot be found after the package is installed, you can view the specific path to the installation content by dpkg-l the Xxxx.deb command.
When you are finished, copy the Xxxx.desktop to the desktop, and if the user's current directory has a desktop directory, move the file directly to the desktop file.