-
-
Notifications
You must be signed in to change notification settings - Fork 405
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] Panic with notifier_host #1202
Comments
It seems like the eww/crates/notifier_host/src/item.rs Line 64 in 8661abf
I do not know the specifics of dbus / sni, but something about the service just being a few numbers just feels off, isn't it supposed to have a suffix, like described in the comment above the fn in question? |
that's weird, i can't seem to reproduce this. |
It looks like nm-applet is not providing any of the kde StatusNotifierItem dbus entries, but instead providing the ones from ayatana https://ayatanaindicators.github.io/
Same thing for udiskie
|
Im on:
|
Oh wait, i seem to have mixed things up... udiskie does provide the
|
i'm still having issues reproducing this, sorry :/ using |
Running that, does no longer lead to a panic for me (however thats only because the nm-applet service is now However it still doesn't work:
Listing the objects of
|
Can you run I am curious if your services are also registered at the weird number or if yours actually have a path like line 62 seems to expect: eww/crates/notifier_host/src/item.rs Lines 56 to 73 in 8661abf
|
|
Yea, thats the problem, for some reason on my system they aren't registering with the object path, just the service, so i fall into line 64, and yours is in line 62
|
that seems more like a dbus issue to me though or am i reading this wrong |
Yup, it definitely is an issue with my dbus setup that nm_applet doesn't register the correct object path into the StatusNotifierWatcher. However it seems like line 64 is supposed to catch this issue and panics for short service names. There are no objects registered at If i change line 64 to temporarily hardcode the correct path, so:
it works like a charm.... |
is the i currently don't really have the time to work on this myself, but feel free to open a pr, i'll do my best to test and review it if you do! |
Its very strange - if i monitor the session dbus traffic with
and there it includes the correct object path. You are right the Sure I'll look into it more and PR any things that can actually be resolved within eww, and are not just a misconfiguration on my part. One thing that could be the culprit is that I am using the |
i have not changed anything from the default implementation for |
Yes! Now that i know it, it seems quite obvious. So it was entirely my fault. I wonder, however, if we should change up line 64 anyways, cause the slicing is definitely broken as it assumes service names that are exactly 6 chars long, and also as far as I understood it, the object will never be at the path that |
a warning about falling back to a default attempt to address the object seems reasonable i think it'd be best to investigate #1180 first tho |
Then it's probably best to close this issue, and continue all further investigation over there. |
So I've just started exploring this because I was getting the panic on my Ultramarine Linux 40 (i.e. Fedora-based) system, running Budgie Desktop (i.e. X11, in case that makes a difference for this) Not currently on that exact system, but last night when I was, with: busctl --user \
get-property org.kde.StatusNotifierWatcher \
/StatusNotifierWatcher \
org.kde.StatusNotifierWatcher \
RegisteredStatusNotifierItems ... I was getting two path-less results as described in this thread (one was for nm-applet, the other for Ulauncher); nm-applet had only a 2-digit ID (i.e. 5-length string). A quick hack later to remove the However, running that command on the system I'm currently on (Fedora 40 with KDE, Wayland), I note that there are items that have the "default"
For reference, results of
|
So I've been able to resolve the issue with these changes: master...Kage-Yami:eww:fix/pathless-systray-items Basically, it uses DBus interface introspection at a fixed I see a few potential issues (even if only from an "appetite" perspective) with it before it could be merged in (but happy to create a pull request so it can be iterated on):
|
feel free to open a pr! i don't think it's a good idea to rely on outdated features though, so maybe we should look into different ways to solve this issue (ideally migrating to zbus 5.1.1 while doing so) |
PR created: #1230 Ended up taking the time to crawl the tree to find the first Also scrapped the wrapping of |
Checklist before submitting an issue
Description of the bug
When trying to create a window with the systray widget, eww panics on my system.
Reproducing the issue
Having the config
in
examples/systray/eww.yuck
.Then starting a program that provides systray entries like
nm-applet
Then running
Additional context
I am driving NixOS and Hyprland.
This issue appears on eww main at commit 8661abf, however I assume it would have been around since #743
I will keep investigating this and post updates in here, however if there is any guidace, that would be greatly appreciated as this is my first time within the eww codebase.
The text was updated successfully, but these errors were encountered: