linuxdeepin / developer-center

Deepin developer center, provide developer wiki and community forum.
450 stars 73 forks source link

Duplicate Tray Icons #3174

Open NjlsShade opened 2 years ago

NjlsShade commented 2 years ago

SUMMARY | 问题概要

Some applications that use the tray will display duplicated, one will have a deepin themed context menu, and the other won't.

STEPS TO REPRODUCE | 复现步骤

  1. Open an application that uses the system tray, there is a chance it will show up twice in the tray (Unity Hub Flatpak is an example, I believe it only affects Flatpaks and AppImages). Screenshot_select-area_20220521002116

OBSERVED RESULT | 观察到的结果

Multiple tray icons for the same app appear, one with a deepin-themed context menu, one without. Screenshot_20220521002259 Screenshot_20220521002306

EXPECTED RESULT | 期望的结果

A single tray icon, ideally using the deepin-themed context menu.

SOFTWARE/OS VERSIONS | 软件/系统版本信息

Using the latest deepin 20.5 freshly installed and updated.

ADDITIONAL INFORMATION | 额外补充

This issue used to also affect my pCloud app (AppImage), however, I'm not seeing it as an issue anymore. The pCloud tray icon now only shows one icon correctly, however, it's the non-deepin-themed context menu. Screenshot_20220521003033

Again, I feel the deepin-themed version should be the one displayed.

BLumia commented 2 years ago

Not sure but probably related: https://github.com/linuxdeepin/dde-dock/issues/279

tsic404 commented 2 years ago

They are implemented in two different ways, the deepin-themed content menu is SNI, amother is xembed

tsic404 commented 2 years ago

All flatpak eletron apps have Duplicate Tray Icons, image Use PID to intercept duplicate registrations for different protocols not fixed on flapak which use dbus-proxy, who has different PID on XEmbed and SNI. image