linuxdeepin / developer-center

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

Duplicate Tray Icons #2467

Closed aksh1618 closed 2 years ago

aksh1618 commented 5 years ago

The dock is duplicating icons in tray for some apps, I suspect this is happening for apps where Deepin is trying to theme the menu. Initially only a single icon (with themed menu) is present, but the duplicate version appears as soon as the icon is clicked, with original, unthemed menu. Screenshots:

deepinscreenshot_select-area_20190118051034 deepinscreenshot_select-area_20190118051050 deepinscreenshot_select-area_20190118051102 deepinscreenshot_select-area_20190118051124 deepinscreenshot_select-area_20190118051136 deepinscreenshot_select-area_20190118051153

(May be related to linuxdeepin/dde-dock#141)

kundius commented 5 years ago

+1

listenerri commented 5 years ago

The context menu with black background is provided by XEmbed protocol and the "deepin style" context menu is provided by SNI protocol.

Although DDE supports both XEmbed and SNI protocols, applications should probably not provide both.

@hualet Is it right for provide both kinds of protocol support at the same time?

hualet commented 5 years ago

I think it’s ok to have both,but it seems we’re wrong?

theLuthier commented 5 years ago

I can live with it, but it gets pretty obnoxious DeepinScreenshot_select-area_20190502222609

hualet commented 5 years ago

I can't reproduce this with the latest version of deepin, can you provide more info @theLuthier

theLuthier commented 5 years ago

@hualet I'm using deeping 15.10 and pictured in that screenshot is my two synced dropbox accounts (using this method) along with a google drive account via OpenDrive

When I right click on the icons to show their options, each dropbox icon produces a second: deepin-screen-recorder_Select area_20190506203219

As you can see I can no longer reproduce a second google drive icon, it's just the dropbox icons. I think it has something to do with theming like aksh1618 suggested because the icons are different. The originals are smaller with colored sync icon where the duplicates are monochromatic.

hualet commented 5 years ago

Hmmm, that's my recording:

deepin-screen-recorder_Select area_20190509180525

silentblackhole commented 5 years ago

The dock is duplicating icons in tray for some apps, I suspect this is happening for apps where Deepin is trying to theme the menu. Initially only a single icon (with themed menu) is present, but the duplicate version appears as soon as the icon is clicked, with original, unthemed menu. Screenshots:

deepinscreenshot_select-area_20190118051034 deepinscreenshot_select-area_20190118051050 deepinscreenshot_select-area_20190118051102 deepinscreenshot_select-area_20190118051124 deepinscreenshot_select-area_20190118051136 deepinscreenshot_select-area_20190118051153

(May be related to linuxdeepin/dde-dock#141)

I meet the same issue.Are you solve it now? Thanks

silentblackhole commented 5 years ago

I solve my probleam. Because I install the software clipit and the software dependence conflict.I think main responsibility is libappindicator conflict. Finally,I uninstall clipit.The probleam has been solved.

simakwm commented 5 years ago

Same problem here with anarchy linux. but I don't have clipit installed.

listenerri commented 5 years ago

Same problem here with anarchy linux. but I don't have clipit installed.

The main reason is the libappindicator* package

simakwm commented 5 years ago

Yeah, after uninstalling libappindicator*, there is no duplicate dropbox icon anymore. It seems steam-native-runtime was using them. Thanks!

D3SOX commented 5 years ago

Same problem here with anarchy linux. but I don't have clipit installed.

The main reason is the libappindicator* package

Thank you! That resolved the issue for me. But anyways I think this should be fixed so that it works even with libappindicator installed.

theLuthier commented 5 years ago

I just tried to unistall the libappindicator package but it wasn't installed. I still have the tray duplication problem..

jamezrin commented 5 years ago

I cannot remove libappindicator, an app I use depends on it. Is there any fix that doesn't involve removing that package?

mcruz-gh commented 4 years ago

I run into some similar issue with the Slack icon (Fedora 30 with Deepin Desktop). After update, the icon duplicates when application starts. I cannot remove libappindicator, because Slack depends on it.

kidpollo commented 4 years ago

I dont have the lib and I get a few different duplicate tray icons

heregoesnoth commented 4 years ago

Same here with Slack

image

Edit: This was installed from snap package. I removed and installed Slack from .deb package and the duplicate icon is gone.

tduvally commented 4 years ago

I had the reverse situation with Remmina. One icon when installed with snap, 2 when installed with .deb.

I currently have 6 apps that have duplicate icons. 🥳

ivanlauhk commented 4 years ago

There are bunch of apps depending on libappindicator, when will there be a fix for deepin?

ca-bezerra commented 4 years ago

I also have this problem in the deepin v20 beta. Screen Capture_select-area_20200709215408

y9c commented 4 years ago

image

h3rnan commented 4 years ago

I have the same problem throughout the dock. The issue happens in Manjaro Deepin

OS: Manjaro Linux x86_64 v20.0.3 Host: Lenovo Legion Y530-15ICH Kernel: 5.7.9-1-MANJARO DE: Deepin WM: KWin CPU: Intel i5-8300H (8) @ 4.000GHz GPU: Intel UHD Graphics 630 GPU: NVIDIA GeForce GTX 1050 Mobile Memory: 3359MiB / 31992MiB

dock-issue

caiogallo commented 4 years ago

I also had the same problem in dock mentioned by @h3rnan and solved uninstalling libindicator-gtk3 Find any "indicator" package and try to uninstall it.

goeroeku commented 4 years ago

Same here ... The problem still appears after I uninstall the indicator. In fact, a new problem arises, there is an icon that cannot be lost after the application is closed. image

twenshin commented 4 years ago

image Same here on Deepin 20 (latest). Seems like icons being displayed twice for chromium/electron applications only. Removing libindicator will cause uninstalling some apps depending on it (Google Chrome, for example), so that's not a option.

RigoLigoRLC commented 4 years ago

image Same here on Deepin 20 (latest). Seems like icons being displayed twice for chromium/electron applications only. Removing libindicator will cause uninstalling some apps depending on it (Google Chrome, for example), so that's not a option.

With other users' report in Deepin BBS, I think we can confirm that this problem will occur when an Electron application tries to use Custom title bar. I dont have slack or other electron apps that utilize tray icons, but this is true for the icon of Visual Studio Code

There's also one issue mentioning duplicate icon in developer-center repo

twenshin commented 4 years ago

image Same here on Deepin 20 (latest). Seems like icons being displayed twice for chromium/electron applications only. Removing libindicator will cause uninstalling some apps depending on it (Google Chrome, for example), so that's not a option.

With other users' report in Deepin BBS, I think we can confirm that this problem will occur when an Electron application tries to use Custom title bar. I dont have slack or other electron apps that utilize tray icons, but this is true for the icon of Visual Studio Code

There's also one issue mentioning duplicate icon in developer-center repo

Maybe. I've tried to develop an Electron application with tray icon functionality, and icon doesn't duplicate.

RigoLigoRLC commented 4 years ago

Maybe. I've tried to develop an Electron application with tray icon functionality, and icon doesn't duplicate.

AFAIK this isn't 100% reproducible. A few users in the forum and community QQ chat has tested this and was sure that custom title bar WILL lead to duplicate app icon, but without stable reproduces.

Nevoff89 commented 4 years ago

I have the same issue on Arch Linux . I can't remove indicator package because Remmina depends on it image

llopez commented 4 years ago

Same here. Deepin 20

image

wangbeardisco commented 3 years ago

Same here with Deepin 20, latest update (1003). I get duplication with Zoom and Slack.

Does anybody know when there will be a fix for this?

image

tanvir-kx commented 3 years ago

Duplicate Microsoft Teams Icon as well. check issue linuxdeepin/dde-dock#301

igorCuznetov commented 3 years ago

Same issue Deepin 20 Screen Capture_select-area_20201223180103

llopez commented 3 years ago

I guess I will cama back to a plain debian distribution

On Wed, 23 Dec 2020 at 13:01, igor.cuznetov notifications@github.com wrote:

Same issue Deepin 20 [image: Screen Capture_select-area_20201223180103] https://user-images.githubusercontent.com/18048450/103015298-d648f700-4548-11eb-86cd-2a5b2d59cac0.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <linuxdeepin/developer-center#2467>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA5A5TVXGM333BR522UQYLSWIH5RANCNFSM4GREGMRA .

-- Luis Lopez Software Developer

All that is necessary for the triumph of evil is that good men do nothing. Do something.

http://luigibyte.com.ar/

akmalkadi commented 3 years ago

I have the same issue in Deepin 20.1 (the system is updated)

Screen Capture_select-area_20210109022219

pablotrianda commented 3 years ago

I have the same issue. Deepin 20.01 image

AntonioNtV commented 3 years ago

image Same problem. Deepin 20.02

mawaraujo commented 3 years ago

image Deepin 20.02

ghost commented 3 years ago

Screenshot_select-area_20210414163449 MajorVersion=20.2 MinorVersion=1040 OsBuild=11038.001

sesliu commented 3 years ago

Same here Deepin 20.02

errorDeepin

In fact, I tried to resolve that problem by removing libappindicator library, but it can back again due to some apps dependencies.

ghost commented 3 years ago

Hi everyone. I removed libappindicator3-1 and it worked.

raspin0 commented 3 years ago

Hi everyone. I removed libappindicator3-1 and it worked.

That's not really a solution, you just removed one way of injecting tray icon. The real problem is how to handle a situation where there are two variants at the same time. Right now when an app uses only libappindicator3 you won't have anything. Not to mention applications like caprine that make hard dependency to it.

akmalkadi commented 3 years ago

This issue should be labeled as a bug!! More than two years and still a bug! I don't think the developer team is aware of it. It is one of the reasons to stop using Deepin.

RigoLigoRLC commented 3 years ago

kek, I update a readme doc and it took 4mo to be merged. Are they even aware of anything?

On Tue, Apr 27, 2021, 11:06 PM akmalkady @.***> wrote:

This issue should be labeled as a bug!! More than two years and still a bug! I don't think the developer team is aware of it. It is one of the reasons to stop using Deepin.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <linuxdeepin/developer-center#2467>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYTVUWY4ZA6JX7QIRC2XFLTK3HFXANCNFSM4GREGMRA .

raspin0 commented 3 years ago

This issue should be labeled as a bug!! More than two years and still a bug! I don't think the developer team is aware of it. It is one of the reasons to stop using Deepin.

Unfortunately, that's just the outcome of limited resources.. I would also move to something better, but in Linux there is nothing even close to Deepin.

vitor251093 commented 3 years ago

This issue should be labeled as a bug!! More than two years and still a bug! I don't think the developer team is aware of it. It is one of the reasons to stop using Deepin.

Agree. I was 100% decided to use Deepin, but that issue is bothering me A LOT. I'm looking for alternatives right now.

Apple-QAQ commented 2 years ago

都一样,election应用都有

hualet commented 2 years ago

Time to fix the bug, I have the same issue here with 1Password @zccrs
Do you know how other DEs handle this? @felixonmars

zccrs commented 2 years ago

A TrayIcon is from the SNI D-Bus interface, the other TrayIcon is from the X11 Embed. I need to try the other DEs, if it's a bug of the DEs, I can fix it in a week.