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/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-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=owen
2. Change the file name to eclipse. javastop3 and add executable permissions to the file.
You can use the CHMOD + x desktop file or right-click it to modify it.
4. copy the file to the desktop
Note: In versions earlier than ubuntu11.04, there seems to be a simpler way to create a desktop shortcut: Right-click desktop-create a starter,
Well written. This is a good thing.
Share:
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/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-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=owen
2. Change the file name to eclipse. javastop3 and add executable permissions to the file.
You can use the CHMOD + x desktop file or right-click it to modify it.
4. copy the file to the desktop
Note: In versions earlier than ubuntu11.04, there seems to be a simpler way to create a desktop shortcut: Right-click desktop-create a starter,
Well written. This is a good thing.