mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 08:15:21 +01:00
[GH-ISSUE #645] [Tray] iwgtk indicator fails to display and errors out ironbar #215
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#215
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JonasVerhofste on GitHub (Jun 21, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/645
Describe the bug
When running iwgtk with indicator support, ironbar does not show the tray icon and throws an error. I'm pretty sure this is unrelated to other tray-related issues, as other tray applications work fine. Running with
IRONBAR_LOG=debuggives me the following relevant output:As far as I understand it (and I could be horribly wrong), the
StatusNotifierItem APIthat is mentioned in the iwgtk README, is the freedesktop standard that the kde libappindicator protocol implements? So in theory, iwgtk and ironbar should be compatible?However, I'm not sure if the above problem here lies with ironbar, a library used by ironbar or the way iwgtk advertises itself. In case of the latter two I'll create issues in the relevant repo and this can be closed.
To Reproduce
iwgtk -i(oriwgtk --indicators)Expected behavior
The iwgtk icon shows up in the tray
System information:
a9d728f191at the time of writing)@JakeStanger commented on GitHub (Jun 28, 2024):
I've not investigated yet, but here's what I do know:
My litmus test tends to be "does it work properly in another tray impl?" For example, all of Waybar, AGS and Quickshell have more correct implementations. A tray icon's behaviour there will confirm whether it's Ironbar or not.
@JonasVerhofste commented on GitHub (Jun 28, 2024):
Installed waybar to test and can confirm that it seems to work properly there (including changing icon images depending on wifi state). So that sadly increases the odds of it being ironbar.
I'll see if I can figure out where exactly it goes wrong. My brain however doesn't fully agree with rust (yet), so it'll take a bit for my head to wrap around the issue.
@JakeStanger commented on GitHub (Jun 28, 2024):
No worries if you can't get anywhere, it's not an easy task. If you do want to give it a go though, the tray impl is here: https://github.com/JakeStanger/system-tray
@JonasVerhofste commented on GitHub (Jun 28, 2024):
Aha, that's what I was missing! Not being used to the rust ecosystem I had not seen that the implementation lived elsewhere.
You want me to close this issue and create one there?
@JakeStanger commented on GitHub (Jun 29, 2024):
Happy to keep it here
@bwidawsk commented on GitHub (Jul 22, 2024):
I have little clue how dbus works but I took a look at this because I'd also like this functionality. I learned two small pieces of information
iwgtk -iwill not work properly. Like ironbar changes the name or consumes the event first??Here is a poor implementation to fix the second one. I'm happy to actually fix this properly, I just don't want to learn the dbus stuff :)
@JakeStanger commented on GitHub (Nov 6, 2024):
Hello, I'm finally looking at picking this up. Unfortunately I can't even get
iwgtkto start at the minute.The above patch only works if the address has
orgin it, which a lot don't, causing it to crash. I'm sure it's a good start though, so as soon as I can get the thing to work I'll see if I can work it into the code.@MTSYuki commented on GitHub (Jun 19, 2025):
Hello, I use iwgtk tray on Ironbar and I noticed when launching the bar AND then iwgtk, the icon don't show and appears this message
ERROR system_tray::client: 183: zbus variant errorI not sure why this happens, but I know is something on Ironbar, bc this works on Waybar