Switched to using runhide to suppress command prompt on windows when opening UI

This commit is contained in:
Ox Cart 2015-02-20 20:38:23 -06:00
parent ba570a1119
commit 40c15a1b14
1 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,8 @@ package open
import (
"os/exec"
"strings"
"github.com/getlantern/runhide"
)
func cleaninput(input string) string {
@ -13,9 +15,9 @@ func cleaninput(input string) string {
}
func open(input string) *exec.Cmd {
return exec.Command("cmd", "/C", "start", "", cleaninput(input))
return runhide.Command("cmd", "/C", "start", "", cleaninput(input))
}
func openWith(input string, appName string) *exec.Cmd {
return exec.Command("cmd", "/C", "start", "", appName, cleaninput(input))
return runhide.Command("cmd", "/C", "start", "", appName, cleaninput(input))
}