Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ubuntu 18.04 how to fix icons to the taskbar

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "Ubuntu 18.04 how to fix icons to the taskbar". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Open the terminal and enter the application management cd ~ / .local/share/applications/

Create a new application icon vim * *. Desktop (for example: wechat.desktop)

#! / usr/bin/env xdg-open [Desktop Entry] Version=1.0Terminal=falseType=ApplicationName=Exec=Icon=NoDisplay=falseStartupWMClass=

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

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

At this point, when StartupWMClass is empty, a double icon appears to launch the application.

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

Xprop | grep WM_CLASS, when the mouse pointer changes to a cross center, and then clicks on the open application, the terminal will give back a message, including two strings

Add the contents of the first string to the StartupWMClass, save, close the application and reopen it, and there will be no double icons.

This is the end of how to fix icons to the taskbar in Ubuntu 18.04. thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report