Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.18k stars 683 forks source link

systemd-failed-units doesn't update #3444

Open ElliottSullingeFarrall opened 1 month ago

ElliottSullingeFarrall commented 1 month ago

I've been having issues with the systemd-failed-units module not updating. If I login with a failed unit then it will successfully report that failed unit. However, if I then restart that unit and it is no longer failing, the waybar module will not reflect this change until I next login (or restart waybar).

I'm not too familiar with the way the modules are implemented but I noticed that in the src for systemd-failed-units it doesn't implement the interval option. I have tried setting both interval and restart-interval and neither has made a difference. Based on this I assume that the module is supposed to continuously check the units without exiting.

Has anyone else had this issue? I have installed waybar via nixpkgs (unstable).

RobertMueller2 commented 1 month ago

Just tried it out and fixed a system error, the module was updated right away. It does so by handling DBus signals. No intervals needed. The module hasn't really changed since its inception. Theoretically nixpgks could have patched it, but I doubt it. So I'm probably using the same code.

The best idea I can offer for troubleshooting is to look at Waybar's output, see if there are any error messages.