Re: [dev] [dmenu] running shell scripts in dmenu
On Fri, Jan 04, 2019 at 10:20:42AM -0200, Caio Barros wrote:
> Em qui, 3 de jan de 2019 ās 23:22, Martin Tournoij <martin_AT_arp242.net> escreveu:
>
> > Note there is a typo in that hashbang,
>
> oops! I was typing as I went :D. Actually in the original script I
> didn't add the shebang #!/bin/sh, but I did it now
>
> > Just reboot your system if you're unsure.
>
> Hum, still doesn't work. If I understand correctly, dwm uses the scipt
> dmenu_path to know which are the available commands. When I look to my
> ~/.cache folder it doesn't have my scripts in there. Maybe it is the
> way I added the folder to path? I think I just added the following
> lines to my ~/.bashrc file:
>
> PATH="/home/caio/scripts:${PATH}"
> export PATH
>
How are you starting dwm? If you are using a display manager (a
graphical login), check on how it logs you in. It is possible it doesn't
start a shell to start dwm, so then the bashrc is never run. I have no
idea how to solve that problem. I think you might try to put that into
~/.profile, but I'm not sure.
I run dwm from startx. So I know all the variables present in the first
shell started from the login will be present in dwm, and therefore also
in dmenu.
Ciao,
Markus
Received on Fri Jan 04 2019 - 14:00:09 CET
This archive was generated by hypermail 2.3.0
: Fri Jan 04 2019 - 14:12:07 CET