forked from mirror/open-golang
Merge pull request #5 from THUNDERGROOVE/master
Fix 'start' executable not found in %PATH%
This commit is contained in:
commit
1bdd1ce936
|
@ -7,9 +7,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func open(input string) *exec.Cmd {
|
func open(input string) *exec.Cmd {
|
||||||
return exec.Command("start", "", input)
|
return exec.Command("cmd", "/C", "start", "", input)
|
||||||
}
|
}
|
||||||
|
|
||||||
func openWith(input string, appName string) *exec.Cmd {
|
func openWith(input string, appName string) *exec.Cmd {
|
||||||
return exec.Command("start", "", appName, input)
|
return exec.Command("cmd", "/C", "start", "", appName, input)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue