You are not logged in.
Hello Gentlemen,
I am trying out spectrwm on Arch with a default config. Key bindings work, Super+p returns dmenu, dmenu_run also executes OK from terminal, but the status bar does not work as I am getting the following message at the top (where it should be) "total exceptions: 2, first exception could not find dmenu_run".
I have went through my config (copied from the default) and all the things seem reasonable. Googling the problem does to return anything similar.
What could be the problem and how to resolve?
Last edited by Mato (2020-05-11 13:18:06)
Offline
type dmenu_run
echo $PATH
tr '\0' '\n' < /proc/`pidof spectrwm`/environ | grep PATHOffline
No need for `tr`:
grep -z PATH /proc/`pidof spectrwm`/environ"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
type dmenu_run echo $PATH tr '\0' '\n' < /proc/`pidof spectrwm`/environ | grep PATH
No need for `tr`:
grep -z PATH /proc/`pidof spectrwm`/environ
Gentlemen, this worked. Thank you! I will change the topic to [SOLVED].
Could you kindly elaborate why this worked? In my understanding all these commands read data and output it on the screen.
Type - location of dmenu_run
Echo - current $PATH variable
Grep - Spectrwm environment path
Before I did Super+Q I had been more than sure that you are asking me to post the output of these commands here.
Offline
What worked?
Those commands are only meant to compare the $PATH in your interactive shell w/ the one in spectrewm and check where dmenu_run resides (and whether that is in both $PATHs or only the one in the interactive shell)
Offline
Ha.
Yup. Nothing in those commands could have fixed anything. They were for collecting diagnostic info for one potential cause. What else did you do in the intervening time?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Good, I was thinking I was missing something
Below is the output of the commands done shortly after I read your replies. The solution is persistent - I have rebooted the machine and it remained OK.
Between running these commands and Super+Q the only thing I did was installing Chromium to post the reply to this forum. The commands were run before Chromium, I have just reran them again and the output is the same.
I spent the whole day yesterday trying to solve this and freshly booted the machine today morning.
type dmenu_run
dmenu_run is /usr/bin/dmenu_runecho $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perltr '\0' '\n' < /proc/`pidof spectrwm`/environ | grep PATH
WINDOWPATH=1
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perlOffline
The output doesn't hint at why it might have failed at all (eg. if dmenu_run had been installed to ~/bin and that was only available in interactive shells or so)
*shrug*
Offline