elParaguayo / qtile-extras

Somewhere to store things I create for qtile that probably won't end up in the official repo
MIT License
163 stars 19 forks source link

StatusNotifier Widget Exception on Shutdown #370

Closed phragment closed 1 month ago

phragment commented 1 month ago

I noticed an exception occuring during shutdown of Qtile using the StatusNotifier widget from qtile-extras:

libqtile: exception during finalize Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/libqtile/core/manager.py", line 315, in _finalize_configurables widget.finalize() File "/usr/lib/python3.12/site-packages/libqtile/widget/statusnotifier.py", line 159, in finalize host.unregister_callbacks( File "/usr/lib/python3.12/site-packages/libqtile/widget/helpers/status_notifier/statusnotifier.py", line 670, in unregister_callbacks self._on_item_added.remove(on_item_added) ValueError: list.remove(x): x not in list

This does not happen when using the widget from qtile. I can reproduce this behavior on both X11 and Wayland backends.

Versions: qtile 0.27.0 qtile-extras 18509c9

elParaguayo commented 1 month ago

Can you try the fix in qtile/qtile#4955

phragment commented 1 month ago

Yes, it works for me. Thank you!