Ubuntu shortcuts and ubuntu shortcuts
By default, ubuntu stores the automatically installed software shortcuts in the/usr/share/applications directory. To create a desktop shortcut, right-click Copy-desktop, or lock the task initiator.
Sometimes, every time you install the software, you need to start the script and re-install it again. This is very troublesome because he has locked the shortcuts.
PHPStorm is used as an example. First download the software package, decompress it directly in a directory, execute the script for installation, and 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/phpstorm
GenericName [zh_CN] = IDE
GenericName = IDE
Icon =/home/owen/Software/phpstorm/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 phpstorm. javastop3 and add executable permissions to the file.
You can use the chmod + x desktop file or right-click it to modify it.