By default, Ubuntu stores the automatically installed software shortcuts in the/usr/share/applications directory. If you want to create a desktop shortcut, right-click and choose Copy> desktop. The above method is implemented after the system automatically installs the software. Sometimes we download some software from the Internet for manual installation. How can we create a desktop shortcut for the software? Take Eclipse as an example. First download the Eclipse software package from the official website, decompress it directly under a directory, and double-click
By default, Ubuntu stores the automatically installed software shortcuts in the/usr/share/applications directory. If you want to create a desktop shortcut, right-click and choose Copy> desktop.
The above method is implemented after the system automatically installs the software. Sometimes we download some software from the Internet for manual installation. How can we create a desktop shortcut for the software? Take Eclipse as an example. First download the Eclipse software package from the official website, decompress it directly under a directory, and double-click the eclipse file to start eclipse. However, if you want to open eclipse every time, start from the installation directory, isn't it a little troublesome? Follow the steps below to create a desktop shortcut.
1. Create an object and copy the following code.
Here we only need to pay attention to three places, namely the Exec = software execution file path, Icon = shortcut Icon (if any), Name = shortcut Name. Modify the code based on your own software, save the code, and close the file.
[Desktop Entry]
Categories = Development;
Comment [zh_CN] =
Comment =
Exec =/home/owen/Software/eclipse
GenericName [zh_CN] = IDE
GenericName = IDE
Icon =/home/owen/Software/eclipse/icon. xpm
MimeType =
Name [zh_CN] = eclipse
Name = eclipse
Path =
StartupNotify = true
Terminal = false
Type = Application
X-forwarded-ServiceName =
X-forwarded-StartupType =
X-KDE-SubstituteUID = false
X-KDE-Username = owen
2. Change the file name to eclipse. desktop.
3. Add executable permissions to the file
You can use the chmod + x desktop file or right-click it to modify it.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2