From 6b034ef5f98681cd9887f4899315a456079e8dd1 Mon Sep 17 00:00:00 2001 From: yory8 <> Date: Mon, 17 Jun 2019 08:40:45 +0200 Subject: [PATCH] fix: issue #7, find dmenu anywhere --- selector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }