-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
[BUG] Systray applet's tooltip are not dynamically resfreshed / udpated #320
Comments
I'd need to set up some testing environment to deal with this issue. Let me think. |
Sure no problem. If it helps, I can guide you through a way to install & set up Arch-Update to be able to easily generate tooltip changes for its systray in your testing environment as a test case. Let me know if needed :) |
It would be not bad. I'd be sure I'm working on the proper issue. :D |
1 - Install the arch-update AUR package 2 - Assuming your test env will be using Sway / Nwg-shell: add the 3 - Install 4 - Download an earlier version of fastfetch from Arch's archives: 5 - Downgrade to the earlier version of fastfetch downloaded above: This will generate a new update for your system and trigger a tooltip update accordingly, like so: 6 - You can then left click the systray applet to update your system via Arch-Update (you can answer "Y"es to all questions). This will trigger another tooltip update accordingly, like so: You should see that you need to reload You can repeat steps 5 and 6 as much as you need to generate tooltips updates 😉 Hopefully this is clear enough 😅 |
LOL, I was just about to write a python script to create an icon and update the tooltip text once a second. 🤣 Either way, this needs to wait till the evening, as I'm leaving the office in 20 minutes. |
Well, sure that would work lol. Whatever feels easier to you 🤣
Yeah no problem :) Thanks 🙏 |
It works well now. [edit] I removed some irrelevant replies above. |
I confirm it works as intended with |
You are welcome! A couple of lines of code were missing. It took time to find it, as it's not my code. :) |
Describe the bug
When a systray applet gets its tooltip updated, it won't be updated / refreshed dynamically in
nwg-panel
until you reload it (e.g. withnwg-panel -sigdwl 1
).To Reproduce
Steps to reproduce the behavior:
nwg-panel -sigdwl 1
and see that the tooltip gets updatedExpected behavior
Systray applet's tooltip to be dynamically updated / refreshed (like it does in e.g.
xfce4-panel
)Screenshots
I can record a video if it helps, just tell me :)
Desktop (please complete the following information):
sway version 1.9
nwg-panel version 0.9.39
Additional context
I'm dynamically updating / modifying the tooltip of the systray applet for my
arch-update
app to include the list of pending updates (for the context, this is done by retrieving the related info from a file thanks to a python 'file watcher' directive, see changes made to thesrc/lib/tray.py
file in Antiz96/arch-update#257). The idea is that users can see the list of pending updates by simply hovering their mouse on the systray icon.However, it doesn't work in
nwg-panel
as the tooltip is not automatically refreshed / updated, which forces to reload the panel (e.g. withnwg-panel -sigdwl 1
) to get "updated" tooltip. It works in other panels though, likexfce4-panel
for instance.I'm aware that this might be a bit of an unconventional way to use a tooltip but I'm still trying my luck in case this is "fixable" 😄
I remain available if you need any more information!
The text was updated successfully, but these errors were encountered: