fyne-io / fyne

Cross platform GUI toolkit in Go inspired by Material Design
https://fyne.io/
Other
24.76k stars 1.37k forks source link

fyne_demo logs Fyne error: Failed to load image when click Widgets/Text #5077

Open shuaiyy opened 1 month ago

shuaiyy commented 1 month ago

Checklist

Describe the bug

2024/08/16 15:09:37   Cause: open ../../theme/icons/fyne.png: no such file or directory
2024/08/16 15:09:37   At: /Users/xxx/workspace/go/pkg/mod/fyne.io/fyne/v2@v2.5.0/canvas/image.go:122

How to reproduce

  1. open fyne_demo
  2. click Widgets
  3. click Text

Screenshots

No response

Example code

go install fyne.io/fyne/v2/cmd/fyne_demo@latest fyne_demo

Fyne version

2.5.0

Go compiler version

1.22

Operating system and version

macos13

Additional Information

No response

andydotxyz commented 3 weeks ago

Ah yes, this happens when the app is launched from outside the source tree because that file reference is relative. oops.