You are not logged in.

#1 2020-05-11 09:09:05

Mato
Member
Registered: 2020-05-11
Posts: 3

[SOLVED] "could not find dmenu_run" in spectrwm

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

#2 2020-05-11 09:14:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,819

Re: [SOLVED] "could not find dmenu_run" in spectrwm

type dmenu_run
echo $PATH
tr '\0' '\n' < /proc/`pidof spectrwm`/environ | grep PATH

Offline

#3 2020-05-11 12:37:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: [SOLVED] "could not find dmenu_run" in spectrwm

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

#4 2020-05-11 13:16:44

Mato
Member
Registered: 2020-05-11
Posts: 3

Re: [SOLVED] "could not find dmenu_run" in spectrwm

seth wrote:
type dmenu_run
echo $PATH
tr '\0' '\n' < /proc/`pidof spectrwm`/environ | grep PATH
Trilby wrote:

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

#5 2020-05-11 13:18:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,819

Re: [SOLVED] "could not find dmenu_run" in spectrwm

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

#6 2020-05-11 13:26:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: [SOLVED] "could not find dmenu_run" in spectrwm

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

#7 2020-05-11 14:02:20

Mato
Member
Registered: 2020-05-11
Posts: 3

Re: [SOLVED] "could not find dmenu_run" in spectrwm

Good, I was thinking I was missing something smile 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_run

echo $PATH

/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

tr '\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_perl

Offline

#8 2020-05-11 14:12:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,819

Re: [SOLVED] "could not find dmenu_run" in spectrwm

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

Board footer

Powered by FluxBB