Replies: 3 comments 5 replies
-
|
I made a custom function, not sure if it is the right approach, but it's working, so... 🤷♂️ func (a *App) RestartApplication() {
self, _ := os.Executable()
args := os.Args
env := os.Environ()
// Windows does not support exec syscall.
if osRuntime.GOOS == "windows" {
cmd := exec.Command(self, args[1:]...)
cmd.Env = env
if err := cmd.Start(); err == nil {
os.Exit(0)
}
} else {
syscall.Exec(self, args, env)
}
} |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
@KiddoV replace |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
@KiddoV Did that code fix the comment from minio/selfupdate#1 (comment) for you? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Wails has
runtime.WindowReload()andruntime.WindowReloadApp(), but it is only reload the front-end.Is there anyway that I can reload the entire application programmatically (close the app => reopen the app)?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions