[GH-ISSUE #534] Application icon not working in Windows #910

Closed
opened 2026-08-05 00:40:23 -04:00 by saavagebueno · 1 comment
Owner

Originally created by @rgl on GitHub (Oct 31, 2022).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/534

Unfortunately, I mislead myself into thinking Window.SetIcon also supported the .ico format (like the systray go module) on Windows, but its not really the case, as its fails with the error:

decode image for window icon
2022/10/31 15:04:31   Cause: image: unknown format
2022/10/31 15:04:31   At: C:/Users/rgl/go/pkg/mod/fyne.io/fyne/v2@v2.1.4/internal/driver/glfw/window.go:266
2022/10/31 15:04:31 Fyne error:  Failed to decode image for window icon
2022/10/31 15:04:31   Cause: image: unknown format
2022/10/31 15:04:31   At: C:/Users/rgl/go/pkg/mod/fyne.io/fyne/v2@v2.1.4/internal/driver/glfw/window.go:266

So this needs to be fixed.

Originally created by @rgl on GitHub (Oct 31, 2022). Original GitHub issue: https://github.com/netbirdio/netbird/issues/534 Unfortunately, I mislead myself into thinking `Window.SetIcon` also supported the .ico format (like the systray go module) on Windows, but its not really the case, as its fails with the error: ``` decode image for window icon 2022/10/31 15:04:31 Cause: image: unknown format 2022/10/31 15:04:31 At: C:/Users/rgl/go/pkg/mod/fyne.io/fyne/v2@v2.1.4/internal/driver/glfw/window.go:266 2022/10/31 15:04:31 Fyne error: Failed to decode image for window icon 2022/10/31 15:04:31 Cause: image: unknown format 2022/10/31 15:04:31 At: C:/Users/rgl/go/pkg/mod/fyne.io/fyne/v2@v2.1.4/internal/driver/glfw/window.go:266 ``` So this needs to be fixed.
Author
Owner

@mlsmaycon commented on GitHub (Oct 31, 2022):

Thanks for validating that.

<!-- gh-comment-id:1297815661 --> @mlsmaycon commented on GitHub (Oct 31, 2022): Thanks for validating that.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#910