aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/skratchdot/open-golang
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-05-22 20:53:53 +0200
committerMichael Muré <batolettre@gmail.com>2019-05-22 20:53:53 +0200
commit485ca5900486b7fc3ea71cbcbb39b87272ae09fd (patch)
tree92551be8e01130542f969d06282abfc4a1c43629 /vendor/github.com/skratchdot/open-golang
parente781d6c7fe7dba2fc526c2049aa188c9988e1cf4 (diff)
downloadgit-bug-485ca5900486b7fc3ea71cbcbb39b87272ae09fd.tar.gz
vendor: update dependencies
Diffstat (limited to 'vendor/github.com/skratchdot/open-golang')
-rw-r--r--vendor/github.com/skratchdot/open-golang/open/exec_windows.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/vendor/github.com/skratchdot/open-golang/open/exec_windows.go b/vendor/github.com/skratchdot/open-golang/open/exec_windows.go
index 2d936177..6e46c005 100644
--- a/vendor/github.com/skratchdot/open-golang/open/exec_windows.go
+++ b/vendor/github.com/skratchdot/open-golang/open/exec_windows.go
@@ -7,6 +7,7 @@ import (
"os/exec"
"path/filepath"
"strings"
+ // "syscall"
)
var (
@@ -20,9 +21,13 @@ func cleaninput(input string) string {
}
func open(input string) *exec.Cmd {
- return exec.Command(runDll32, cmd, input)
+ cmd := exec.Command(runDll32, cmd, input)
+ //cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
+ return cmd
}
func openWith(input string, appName string) *exec.Cmd {
- return exec.Command("cmd", "/C", "start", "", appName, cleaninput(input))
+ cmd := exec.Command("cmd", "/C", "start", "", appName, cleaninput(input))
+ //cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
+ return cmd
}