How to Set Shortcut Icons in Linux

How to Set Shortcut Icons in Linux

Preface

Creating shortcuts in Linux can open applications faster. Here I introduce a method to you, which I also compiled after checking some information before, and I would like to share it with you.

By the way, after opening an application under Linux, the corresponding program thumbnail will appear in the vertical application bar on the left (the one that is vertical, so I call it the application bar). Right-click on the thumbnail to bring up the menu. In the menu, you can choose to lock it to the application bar. In the future, you can click the application thumbnail here to start the application.

Here’s how:

1. Enter a directory

/usr/share/applications

2. Copy an existing similar file (here I will write it according to eclipse)

cp xxxxx.desktop eclipse.desktop

3. Modify the copied files

vim eclipse.desktop

4. Add content as

[Desktop Entry]
Encoding=UTF-8

Name=eclipse

Comment=Eclipse IDE

Exec=/home/your own directory/opt/soft/eclipse-jee-neon/eclipse

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

Summarize

The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. If you have any questions, you can leave a message to communicate. Thank you for your support for 123WORDPRESS.COM.

You may also be interested in:
  • Detailed explanation of commonly used shortcut keys for Linux terminal command line
  • Common shortcut keys for linux shell commands
  • How to solve the problem of forgetting password in Linux system (with pictures and text)
  • A complete list of Shell programming shortcuts under Linux (daily arrangement)
  • Detailed summary of Chrome shortcut keys under Linux
  • Summary of common shortcut keys for Linux CLI operations
  • Convenient and fast - make use of background tasks of the Linux operating system
  • Linux shell command quick access to system help (I) [man-pages definition specification]
  • Command line operation shortcut keys and tips under Linux (sharing)
  • Common shortcut operations in Linux terminal

<<:  Solution to the problem that the InnoDB engine is disabled when MySQL is started

>>:  Mysql uses insert to insert multiple records to add data in batches

Recommend

Will CSS3 really replace SCSS?

When it comes to styling our web pages, we have t...

Stealing data using CSS in Firefox

0x00 Introduction A few months ago, I found a vul...

JS realizes the effect of picture waterfall flow

This article shares the specific code of JS to re...

Detailed installation and configuration of Subversion (SVN) under Ubuntu

If you are a software developer, you must be fami...

js to write the carousel effect

This article shares the specific code of js to ac...

Example of how to deploy MySQL 8.0 using Docker

1. Refer to the official website to install docke...

Detailed examples of float usage in HTML/CSS

1. Basic usage examples of float 1. Let's fir...

Vue realizes simple effect of running light

This article shares the specific code of Vue to a...

JS+AJAX realizes the linkage of province, city and district drop-down lists

This article shares the specific code of JS+AJAX ...

Solution to Linux server graphics card crash

When the resolution of the login interface is par...

Example of using negative margin to achieve average layout in CSS

For evenly distributed layouts, we generally use ...

Example of how to mosaic an image using js

This article mainly introduces an example of how ...

Design Association: Why did you look in the wrong place?

I took the bus to work a few days ago. Based on m...