Skip to content

Commit b6a2d6c

Browse files
committed
Force the icon setter... the type check in other setter fails
Fixes #48
1 parent 6892e4d commit b6a2d6c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

systray_unix.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,8 @@ func SetIcon(iconBytes []byte) {
6060
return
6161
}
6262

63-
dbusErr := props.Set("org.kde.StatusNotifierItem", "IconPixmap",
64-
dbus.MakeVariant([]PX{convertToPixels(iconBytes)}))
65-
if dbusErr != nil {
66-
log.Printf("systray error: failed to set IconPixmap prop: %s\n", dbusErr)
67-
return
68-
}
63+
props.SetMust("org.kde.StatusNotifierItem", "IconPixmap",
64+
[]PX{convertToPixels(iconBytes)})
6965
if conn == nil {
7066
return
7167
}

0 commit comments

Comments
 (0)