We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a178faf + 3cfc6a3 commit 6b6fb1cCopy full SHA for 6b6fb1c
main.go
@@ -59,8 +59,16 @@ func main() {
59
log.Fatal(err.Error())
60
}
61
62
+ userCacheDir, err := os.UserCacheDir()
63
+ if err == nil {
64
+ userCacheDir = filepath.Join(userCacheDir, getExeName())
65
+ } else {
66
+ log.Printf("cannot set user cache dir for Web View: %v", err)
67
+ userCacheDir = ""
68
+ }
69
+
70
// Create application with options
- err := wails.Run(&options.App{
71
+ err = wails.Run(&options.App{
72
Title: AppName,
73
Width: 900,
74
Height: 900,
@@ -84,6 +92,7 @@ func main() {
84
92
},
85
93
// Windows platform specific options
86
94
Windows: &windows.Options{
95
+ WebviewUserDataPath: userCacheDir,
87
96
WebviewIsTransparent: false,
88
97
WindowIsTranslucent: false,
89
98
DisableWindowIcon: false,
0 commit comments