diff --git a/selector.go b/selector.go index 6ad97e0..7d2af44 100644 --- a/selector.go +++ b/selector.go @@ -29,7 +29,7 @@ func dmenu(list []string, max int, tool string) (string, error) { return "", nil } - bin, err := exec.LookPath("/usr/bin/" + tool) + bin, err := exec.LookPath(tool) if err != nil { return "", fmt.Errorf("%s is not installed", tool) }