Add a shortcut to the desktop in Linux Centos7

At that time, I had just installed centos7 and downloaded the jb software, but every time I had to use the command line to run it.

What I want is the following effect, which I researched later

I saw why the automatically generated one can be used, I opened the source file and studied it

 

First, put the running startup file into bin

root#ln -s /usr/local/phpstorm/bin/phpstorm.sh

Second, create a new desktop file and write the following content

# cd ~/Desktop

# gedit phpstorm.desktop #The desktop file must end with desktop

[Desktop Entry]
Version = 1.0 #Version information 
Name =PhpStrom2018. 1 #Desktop display name 
Exec =/usr/bin/phpstorm % U #Execution file path
Terminal=false
X-MultipleArgs=false
Type=Application
Icon =/usr/local/phpstorm/bin/ phpstorm.png #Desktop icon path
Categories = Network;WebBrowser; #categories
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
StartupWMClass=Chromium-browser
StartupNotify=true
Keywords=web;browser;internet;
Actions=new-window;new-private-window;
X-Desktop-File-Install-Version=0.23

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324738298&siteId=291194637