diff --git a/dbus/run.go b/dbus/run.go index bea820e..fd317ed 100644 --- a/dbus/run.go +++ b/dbus/run.go @@ -46,7 +46,9 @@ func (p *Proxy) Start(ready chan error, output io.Writer, sandbox bool) error { // look up absolute path if name is just a file name toolPath := p.name if filepath.Base(p.name) == p.name { - if s, err := exec.LookPath(p.name); err == nil { + if s, err := exec.LookPath(p.name); err != nil { + return err + } else { toolPath = s } }