[Linux] StatusNotifierItem service is not introspectable on dbus
I've submitted this as a bug report but I'm posting here too as I've no idea how support on Discord works.
Since upgrading to version 0.0.26, icons are no longer appearing in my tray. Having looked into this, it seems that 0.0.26 has changed the implementation of the StatusNotifierItem specification. The issue with the current implementation is that the service is not introspectable by clients so they cannot determine what interfaces are provided.
In version 0.0.25
$ busctl --user tree :1.1080
└─/org
└─/org/ayatana
└─/org/ayatana/NotificationItem
└─/org/ayatana/NotificationItem/discord1
└─/org/ayatana/NotificationItem/discord1/Menu
$ busctl --user --no-pager introspect :1.1080 /org/ayatana/NotificationItem/discord1
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.DBus.Introspectable interface - - -
.Introspect method - s -
org.freedesktop.DBus.Peer interface - - -
.GetMachineId method - s -
.Ping method - - -
org.freedesktop.DBus.Properties interface - - -
.Get method ss v -
.GetAll method s a{sv} -
.Set method ssv - -
.PropertiesChanged signal sa{sv}as - -
org.kde.StatusNotifierItem interface - - -
.Scroll method is - -
.SecondaryActivate method ii - -
.XAyatanaSecondaryActivate method u - -
.AttentionAccessibleDesc property s "" emits-change
.AttentionIconName property s "" emits-change
.Category property s "ApplicationStatus" emits-change
.IconAccessibleDesc property s "icon" emits-change
.IconName property s "discord1_2" emits-change
.IconThemePath property s "/tmp/.org.chromium.Chromium.wQVk46" emits-change
.Id property s "discord1" emits-change
.Menu property o "/org/ayatana/NotificationItem/discord1… emits-change
.Status property s "Active" emits-change
.Title property s "discord" emits-change
.XAyatanaLabel property s "" emits-change
.XAyatanaLabelGuide property s "" emits-change
.XAyatanaOrderingIndex property u 0 emits-change
.NewAttentionIcon signal - - -
.NewIcon signal - - -
.NewIconThemePath signal s - -
.NewStatus signal s - -
.NewTitle signal - Elparaguayocode - -
.XAyatanaNewLabel signal ss - -
In 0.0.26
$ busctl --user tree org.kde.StatusNotifierItem-35098-1
├─/StatusNotifierItem
└─/com
└─/com/canonical
└─/com/canonical/dbusmenu
$ busctl --user --no-pager introspect org.kde.StatusNotifierItem-35098-1 /StatusNotifierItem
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
$ busctl --user get-property org.kde.StatusNotifierItem-35098-1 /StatusNotifierItem org.kde.StatusNotifierItem IconName
Failed to get property IconName on interface org.kde.StatusNotifierItem: error occurred in Get
0
-
Ah. So that last command fails because you're not implementing the spec correctly. You don't provide an "IconName" property.
0
Please sign in to leave a comment.
Comments
1 comment