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

Common naming rules for CSS classes and ids

Public name of the page: #wrapper - - The outer e...

React dva implementation code

Table of contents dva Using dva Implementing DVA ...

Study notes to write the first program of Vue

Table of contents 1. Write an HTML, the first Vue...

Sample code using scss in uni-app

Pitfalls encountered I spent the whole afternoon ...

Common writing examples for MySQL and Oracle batch insert SQL

Table of contents For example: General writing: S...

Summary of pitfalls in virtualbox centos7 nat+host-only networking

Table of contents 1. Problem Background 2. What a...

js realizes the magnifying glass effect of shopping website products

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

Solve the problem of docker container exiting immediately after starting

Recently I was looking at how Docker allows conta...

MySQL 8.0 New Features - Introduction to Check Constraints

Table of contents Preface Check Constraints Creat...

VMware ESXi installation and use record (with download)

Table of contents 1. Install ESXi 2. Set up ESXi ...

Solve the problem of mysql's int primary key self-increment

Introduction When we use the MySQL database, we a...

Simple use of Vue bus

Simple use of Vue bus Scenario description: Compo...

Solution to MySQL failure to start

Solution to MySQL failure to start MySQL cannot s...

Solutions to common problems using Elasticsearch

1. Using it with redis will cause Netty startup c...