This commit is contained in:
skratchdot 2014-02-04 20:55:06 -05:00
parent 79de5dd3fd
commit 00211322a2
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ import (
) )
func open(input string) *exec.Cmd { func open(input string) *exec.Cmd {
_, file, _, _ := runtime.Caller(0) // http://andrewbrookins.com/tech/golang-get-directory-of-the-current-file/
_, file, _, _ := runtime.Caller(1)
app := path.Join(path.Dir(file), "..", "vendor", "xdg-open") app := path.Join(path.Dir(file), "..", "vendor", "xdg-open")
return exec.Command(app, input) return exec.Command(app, input)
} }