linuxmint / xapp

Cross-desktop libraries and common resources
GNU Lesser General Public License v3.0
126 stars 44 forks source link

The XApp Status applet is randomly duplicated #158

Open adam083b opened 2 years ago

adam083b commented 2 years ago

Expected behaviour

Only one instance of the XApp Status applet should be displayed: Screenshot at 2022-08-29 09-52-02

Actual behaviour

After starting a new session the XApp Status applet is randomly duplicated

Steps to reproduce the behaviour

Execute the following command multiple times to reproduce the issue: mate-panel --replace

MATE general version

v1.26.0

Package version

v2.2.14+vanessa

Linux Distribution

Linux Mint 21 Vanessa 64-bit

billyswong commented 1 year ago

Could the workaround solution in https://github.com/linuxmint/xapp/issues/157 work for Mate too?

If such workaround works reliably, someone should make such setting become default.

adam083b commented 1 year ago

Hello,

I just just changed the xapp-sn-watcher startup delay from 0s to 6s as suggested and I'll let you know if the issue occurs again. image

Thanks a lot for mentioning this workaround here.

mtwebster commented 1 year ago

xapp-sn-watcher shouldn't even be enabled for MATE. MATE's normal notification tray takes care functionality it provides.

What is the output from:

gsettings get org.x.apps.statusicon status-notifier-enabled-desktops

And also:

killall xapp-sn-watcher
killall xapp-sn-watcher # (yes twice - the session manager may try to restart it)

G_MESSAGES_DEBUG=all XAPP_DEBUG=SnWatcher /usr/libexec/xapps/sn-watcher/xapp-sn-watcher
adam083b commented 1 year ago
gsettings get org.x.apps.statusicon status-notifier-enabled-desktops
['Cinnamon', 'X-Cinnamon']

I disabled xapp-sn-watcher at startup let me reboot several times and confirm it solved the issue.

adam083b commented 1 year ago

I just got the issue again: image

As root:

killall xapp-sn-watcher
xapp-sn-watcher: no process found

So the issue on mate is not related to xapp-sn-watcher :(

mtwebster commented 1 year ago

That's ok -

When they're duplicated like that, can you run:

ps -A | grep xapp

I'm guessing it's really only a single instance of the applet showing duplicate icons, but I want to be sure.

adam083b commented 1 year ago

image

As root user:

ps -A | grep xapp
5121 ?        00:00:00 mate-xapp-statu
billyswong commented 2 months ago

I'm guessing it's really only a single instance of the applet showing duplicate icons, but I want to be sure.

When the icons get duplicated, it is usually the legacy "Notification Area" plus "XApp Status Applet" both showing those icons.

adam083b commented 2 months ago

Hello, I only notice this bug with the "XApp Status Applet", the "Notification Area" never duplicates icons as far as I see. Thanks for looking at my bug report.