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

How to quickly import data into MySQL

Preface: In daily study and work, we often encoun...

Ten Experiences in Presenting Chinese Web Content

<br /> Focusing on the three aspects of text...

How to install Mysql5.7 in Centos6

environment Centos 6.6 MySQL 5.7 Install If the s...

Summary of event handling in Vue.js front-end framework

1. v-on event monitoring To listen to DOM events,...

How to use vue3 to build a material library

Table of contents Why do we need a material libra...

MySQL 8.0 installation tutorial under Linux

This article introduces how to install MySQL 8.0 ...

Example of using Vue built-in component keep-alive

Table of contents 1. Usage of keep-alive Example ...

Detailed tutorial on downloading mysql on Windows 10

MySQL versions are divided into Enterprise Editio...

Solve the scroll-view line break problem of WeChat applet

Today, when I was writing a small program, I used...

Key knowledge summary of Vue development guide

Table of contents Overview 0. JavaScript and Web ...

Summary of using the reduce() method in JS

Table of contents 1. Grammar 2. Examples 3. Other...