How do I set the shortcut icon in Linux

  • 2020-12-22 17:55:33
  • OfStack

preface

Creating shortcuts under Linux allows you to open applications faster. Here is a way to introduce you, but also looked up some information before the collation, with you to share 1.

By the way, when you open the app under Linux, the app bar on the left (which is vertical, I'll just call it the App bar) will display the corresponding app thumbnail. Right click on the thumbnail and you can select lock to the app bar. You can click the App thumbnail here to launch the app.

The methods are as follows:

1, go to a directory


/usr/share/applications

2. Make a copy of an existing similar file (write as eclipse here)


cp xxxxx.desktop eclipse.desktop 

3, modify the copy of the file


vim eclipse.desktop 

4. Add the content as


[Desktop Entry]
Encoding=UTF-8

Name=eclipse

Comment=Eclipse IDE

Exec=/home/ Your directory /opt/soft/eclipse-jee-neon/eclipse

Icon=/home/ Your directory /opt/soft/eclipse-jee-neon/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=GNOME;Development;

conclusion


Related articles: