fyne-io / systray

a cross platfrom Go library to place an icon and menu in the notification area
Apache License 2.0
223 stars 41 forks source link

SetIcon() failed to set IconPixmap prop on Debian/Xfce #48

Closed cvilsmeier closed 1 year ago

cvilsmeier commented 1 year ago

Hi,

I need to update my app's systray icon based on the state of my application. But SetIcon() for updating the systray icon does not seem to work, it prints the following error message:

2023/05/10 23:32:47 systray error: failed to set IconPixmap prop: dbus.Store: type mismatch: slice: cannot convert a value of []systray.PX into []systray.PX

I've created a small project to reproduce the bug: https://github.com/cvilsmeier/fyne-tray-test

andydotxyz commented 1 year ago

Thanks for the report, confirmed.

comron-cvilsmeier commented 1 year ago

I tried fix/48 and it works for me.

lgirma commented 3 months ago

I am still getting that error.

Is this released and available?

andydotxyz commented 3 months ago

It was fixed a year back as you can see in the PR above. This project does not have any formal release process so just asking Go to update the dependency or using @latest will get you all the fixes.