Hide console on windows

The companion does no longer show a terminal window pop up
This commit is contained in:
2026-08-03 19:29:27 +02:00
parent 5a5305dd42
commit e9061a221c
4 changed files with 30 additions and 2 deletions
+3 -1
View File
@@ -57,7 +57,9 @@ func runOpenCommand(template, path string) error {
if !sawPath {
tokens = append(tokens, path)
}
return exec.Command(tokens[0], tokens[1:]...).Start()
cmd := exec.Command(tokens[0], tokens[1:]...)
hideConsole(cmd)
return cmd.Start()
}
// tokenizeCommand splits a command-line string into argv tokens, honouring