diff --git a/open/exec.go b/open/exec.go index 909851a..cc37339 100644 --- a/open/exec.go +++ b/open/exec.go @@ -4,15 +4,10 @@ package open import ( "os/exec" - "path" - "runtime" ) func open(input string) *exec.Cmd { - // http://andrewbrookins.com/tech/golang-get-directory-of-the-current-file/ - _, file, _, _ := runtime.Caller(1) - app := path.Join(path.Dir(file), "..", "vendor", "xdg-open") - return exec.Command(app, input) + return exec.Command("xdg-open", input) } func openWith(input string, appName string) *exec.Cmd {