forked from mirror/open-golang
fixes #2
This commit is contained in:
parent
79de5dd3fd
commit
00211322a2
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue