fix: issue #7, find dmenu anywhere
This commit is contained in:
parent
2d7d64c80d
commit
6b034ef5f9
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ func dmenu(list []string, max int, tool string) (string, error) {
|
||||||
return "", nil
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
bin, err := exec.LookPath("/usr/bin/" + tool)
|
bin, err := exec.LookPath(tool)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", fmt.Errorf("%s is not installed", tool)
|
return "", fmt.Errorf("%s is not installed", tool)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue