diff options
Diffstat (limited to 'vendor/gopkg.in/toast.v1')
-rw-r--r-- | vendor/gopkg.in/toast.v1/toast.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/gopkg.in/toast.v1/toast.go b/vendor/gopkg.in/toast.v1/toast.go index 1782e5e..7ea32c9 100644 --- a/vendor/gopkg.in/toast.v1/toast.go +++ b/vendor/gopkg.in/toast.v1/toast.go @@ -11,6 +11,7 @@ import ( "text/template" "github.com/nu7hatch/gouuid" + "syscall" ) var toastTemplate *template.Template @@ -347,7 +348,9 @@ func invokeTemporaryScript(content string) error { if err != nil { return err } - if err = exec.Command("PowerShell", "-ExecutionPolicy", "Bypass", "-File", file).Run(); err != nil { + cmd := exec.Command("PowerShell", "-ExecutionPolicy", "Bypass", "-File", file) + cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true} + if err = cmd.Run(); err != nil { return err } return nil |