#1011190 systray-mdstat: Not appearing in system tray on plasma wayland

#1011190#5
Date:
2022-05-18 02:40:52 UTC
From:
To:
Dear Maintainer,

systray-mdstat notifications appear as per normal but the icon is not in the tray.

When run from the command line I see these errors:

(systray-mdstat:60879): Gtk-CRITICAL **: 12:27:36.773: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

This happened after I changed to using wayland.

If I run it like this I don't get those errors and it does appear in the systray and works normally:

GDK_BACKEND=x11 systray-mdstat

I also tried this but it didn't help:

GDK_BACKEND=wayland systray-mdstat

Normally that variable is not set.

Thanks,
Geoff

#1011190#10
Date:
2022-05-18 10:36:45 UTC
From:
To:
Hi Geoff,

thanks for the detailed bug report!

Geoff wrote:

Ok, I (and I'm speaking as the upstream developer now :-) have no
experience with Wayland or idea how its system tray works as I don't
use Wayland.

And did this work even although your session was running under
Wayland?

If so, I might consider setting that variable unconditionally inside
the program and also rather early in the program. Then again, this
sounds like a ugly workaround and I wonder what would be the proper
way to solve this.

		Regards, Axel

#1011190#15
Date:
2022-05-19 02:01:11 UTC
From:
To:
Hi Alex,


Axel Beckert wrote:
Thanks for providing this utility, I've been using it for years now!
Using GDK_BACKEND=x11 does make it work under wayland.
Yeah it doesn't really feel right, I'd tried GDK_BACKEND=wayland first as that would make sense.

Just realised it's a perl script so I have some chance to understand how it works :)

Regards,
Geoff