-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--text option for --notification mode not worked #246
Comments
The command |
I investigated this issue and it turned out to be quite the rabbithole. In the end I had to debug quite a lot of large scale codebases, including GTK, Qt, libxcb and KDE Plasma. There also is a very similar issue in wxWidgets: wxWidgets/wxWidgets#18081 The tl;dr is: Yad is not at fault for this issue. The issue is partly in KDE Plasma, but mostly in GTK3 and there is no hope left for fixing it upstream in GTK. So, yad uses KDE Plasma initially dropped support for XEmbed system tray icons in favor of the much newer StatusNotifierItem spec (short: SNI). However, they readded support for XEmbed tray icons later by adding a XEmbed->SNI proxy bridge which takes over the job of the old XEmbed server part and translates over all XEmbed icon events to SNI icon events, so that KDE Plasma understands them (which is why you see a yad statusicon at all). The bridge is very very hacky and does some really bespoke stuff like translating mouse click events, but in my eyes this is arguably a true testament to how extensible X11 is. This is what I meant with the issue is partly on KDE's site, but it would be very easy to fix: Just add an extra case for Turns out, there is more to the issue: So why am I saying GTK3 all the time? The GTK devs have gone completely haywire in the meantime and declared the system tray to be a feature that noone needs. Thus in GTK4 there no longer is a So in the end, it looks like there is no way to fix this problem (other than maybe reimplementing true XEmbed systemtray support in KDE Plasma without the sniproxy bridge, but that is not really worth it, given that noone uses the old spec anymore). Why did I not at least contribute the balloon message support to the sniproxy bridge in KDE Plasma? Well, I searched entire Github and major toolkits for usage of XEmbed balloon message, and it seems that noone significant is using it anyway. It's a deprecated spec that is already replaced, not even Wine uses balloon messages (although they still use the old spec in general, but just display custom balloons without the spec, similar to GTK3. But there is a merge request to move Wine over to SNI completely). |
simple demo
yad --notification --text="ssss"
i expected tooltip with 'ssss', but see 'YAD' only
if a send 'tooltip:ssss' to pipe a get nothing too, 'YAD' only everytime.
p.s. KDE. yad (versions 7.3 and 12.3 )
The text was updated successfully, but these errors were encountered: