Cmd popups when I use exec, -ldflags -H=windowsgui not effective #1734
-
I've been fiddling with this for quite some time. I'm not sure if it's a Wails issue or not, hence raising the question here. I have an app that relies on a background process that I trigger using Go's
The output looks like this:
I've looked at other issues, mostly from Wails v1.0, but nothing has been helpful yet. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If you spawn CMD then you'll get a window regardless. Is there a reason you aren't using the |
Beta Was this translation helpful? Give feedback.
-
These options on Windows saved the day: cmd := exec.Command("app.exe")
cmd.SysProcAttr = &syscall.SysProcAttr{
HideWindow: true,
CreationFlags: 0x08000000,
}
cmd.Start() |
Beta Was this translation helpful? Give feedback.
These options on Windows saved the day:
Source: https://stackoverflow.com/a/48365926/789655