fix: issue #7, find dmenu anywhere

This commit is contained in:
yory8 2019-06-17 08:40:45 +02:00
parent 2d7d64c80d
commit 6b034ef5f9

View file

@ -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)
}