Home System Tutorial LINUX How to pin icons to the taskbar in Ubuntu 18.04

How to pin icons to the taskbar in Ubuntu 18.04

Jan 08, 2024 pm 11:10 PM
ubuntu Fixed taskbar

Open the terminal and enter application management cd ~/.local/share/applications/
Create a new application icon vim ***.desktop (for example: wechat.desktop)

Ubuntu 18.04 如何固定图标到任务栏的方法

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=
Exec=
Icon=
NoDisplay=false
StartupWMClass=
Copy after login

Exec represents the application startup path, Icon represents the icon path

Then click the Apply button and drag the newly generated application icon to the taskbar

Ubuntu 18.04 如何固定图标到任务栏的方法

At this time, when StartupWMClass is empty, double icons will appear when starting the application

Ubuntu 18.04 如何固定图标到任务栏的方法

To solve this problem, first open the application and then enter in the terminal:

xprop |grep WM_CLASS, at this time the mouse pointer will turn into a crosshair, then click on the open application, the terminal will feedback a message, including 2 strings

Ubuntu 18.04 如何固定图标到任务栏的方法

Add the contents of the first string to StartupWMClass, save it, close the application and reopen it, and the double icon will no longer appear

The above is the detailed content of How to pin icons to the taskbar in Ubuntu 18.04. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What should I do if the Ubuntu terminal cannot be opened? How to fix the problem that Ubuntu cannot open the terminal What should I do if the Ubuntu terminal cannot be opened? How to fix the problem that Ubuntu cannot open the terminal Feb 29, 2024 pm 05:30 PM

What should I do if the Ubuntu terminal cannot be opened? How to fix the problem that Ubuntu cannot open the terminal

How to cancel the lock icon in the lower right corner of the Ubuntu 18.04 folder? How to cancel the lock icon in the lower right corner of the Ubuntu 18.04 folder? Jan 12, 2024 pm 11:18 PM

How to cancel the lock icon in the lower right corner of the Ubuntu 18.04 folder?

Log in to Ubuntu as superuser Log in to Ubuntu as superuser Mar 20, 2024 am 10:55 AM

Log in to Ubuntu as superuser

A sneak peek of the seven highlights of Ubuntu 24.04 LTS A sneak peek of the seven highlights of Ubuntu 24.04 LTS Feb 27, 2024 am 11:22 AM

A sneak peek of the seven highlights of Ubuntu 24.04 LTS

How to remove icons in Ubuntu start menu? How to remove icons in Ubuntu start menu? Jan 13, 2024 am 10:45 AM

How to remove icons in Ubuntu start menu?

Ubuntu 20.04 screen recording software OBS installation and uninstallation graphic tutorial Ubuntu 20.04 screen recording software OBS installation and uninstallation graphic tutorial Feb 29, 2024 pm 04:01 PM

Ubuntu 20.04 screen recording software OBS installation and uninstallation graphic tutorial

Ubuntu finally supports disabling automatic updates of snap packages Ubuntu finally supports disabling automatic updates of snap packages Jan 13, 2024 am 10:09 AM

Ubuntu finally supports disabling automatic updates of snap packages

How to install Angular on Ubuntu 24.04 How to install Angular on Ubuntu 24.04 Mar 23, 2024 pm 12:20 PM

How to install Angular on Ubuntu 24.04

See all articles