Re: [dev] [dmenu] running shell scripts in dmenu

From: Martin Tournoij <martin_AT_arp242.net>
Date: Fri, 04 Jan 2019 14:22:07 +1300

On Fri, Jan 4, 2019, at 14:14, Caio Barros wrote:
> #!bin/sh
> surf https://duckduckgo.com

Note there is a typo in that hashbang,

> That works, but for some reason dmenu (+ dwm) doesn't accept this
> command. It only works if I type the full directory (i. e.
> ~/scripts/duck or /home/caio/scripts/duck). I can confirm that the
> directory ~/scripts is on PATH. Any ideas of what can I do?

Did you restart dwm? If you're launching dmenu from dwm then it gets the
environment from its parent. If you just added the PATH to the shell
startup script then that's not automatically added to all new
processes.

Just reboot your system if you're unsure.
Received on Fri Jan 04 2019 - 02:22:07 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 04 2019 - 02:24:07 CET