diff --git a/pkg/open/open.go b/pkg/open/open.go index d75b42f..40eb8d2 100644 --- a/pkg/open/open.go +++ b/pkg/open/open.go @@ -1,6 +1,7 @@ package open import ( + "fmt" "log" "os/exec" "strings" @@ -22,7 +23,7 @@ var possibleCmds = []string{ func init() { for _, cmd := range possibleCmds { - out, err := exec.Command("/usr/bin/command", "-v", cmd).Output() + out, err := exec.Command("/bin/bash", "-c", fmt.Sprintf("%s %s %s", "command", "-v", cmd)).Output() if err != nil { log.Println("err ", err) continue