Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Swaybar tray #3249
Now that this is nearing feature-completion, I would very much appreciate anyone who would like to help test this out and let me know which applications don't work to see what edge cases I haven't accounted for.
I implemented the KDE protocol since I couldn't find any apps that implemented the XDG/freedesktop protocol to test it.
Notable bug: bus events sometimes aren't processed on startup. (I'm not sure if this is still happening)
I only realised right at the end that clicks are going to be quite haphazard since we can't get the global coordinates, which are needed to send to the app.
But since it basically works, I'm putting it here so that people know that this feature is not being ignored. :)
@4e554c4c let me know if I'm doing anything horribly wrong :P
Things that will definitely be done in this PR:
Things that may be done but not definitely:
Things that will probably be left for another PR:
Build seems to fail on my Arch Linux machine with this error
Full build log:
referenced this pull request
Dec 6, 2018
@ianyfan Yes, it compiles now, thank you!
Although it currently segmentation faults as soon as i have any programs running that provide a tray icon
No themes are being found, even though looking at the
I should probably add a warning message if the "Hicolor" is not found, since it is required to be present as a fallback.
On My machine default is this
Im not really sure how to debug this more.
Looks like tray doesn't like something in my XDG_DATA_DIRS path
Unsetting XDG_DATA_DIRS gets it further
Posting this here because there seems to be discussion in this thread about specific apps' tray support.
I tried the new system tray with both Dropbox and nm-applet. Dropbox worked pretty well, although the context menu appeared in the middle of the screen rather than near the tray icon.
nm-applet did not work as well. It was built ad run with Appindicator support. The icon did appear in the tray, but did not respond to any type of click; no menus appeared. Even stranger, when nm-applet was showing in the tray, no other tray icons could be clicked either. Once the nm-applet process was killed, the other icons began responding to clicks again.
I believe I had the dropbox issue when I was testing this, so I'm not sure if there's anything I can do about it.
As for nm-applet, the menu doesn't show up because it hasn't been implemented yet. However, I'm still able to click on other tray icons, so I can't seem to replicate your problem. Maybe there's a clue in the (swaybar) debug logs?