You are not logged in.
Hi,
I'm in a computer at work in which I have no access to root. This is not a problem, I can install dwm under my home/bin directory and it will work the same, however... this it's not the case for dmenu.
I've installed it also under my home/bin and I can use it from a terminal running "dmenu_run", it opens the menu and everything's ok. But, here comes the punchline, it won't work with shortcuts!! Alt+p does nothing.
I've tried referencing "/home/X/bin/dmenu_run" in config.h directly but it doesn't work either. The shorcuts, however, work (I can reference other scripts/applications) but it will not launch dmenu.
Creating a bash script to do "./dmenu_run" doesn't work either. With this I mean: it works if I launch the script from a terminal, but not if I do so with Alt+p (or any other shortcut)
Ps: I'm not sure whether this is the correct subforum. Sorry if it isn't!!
Last edited by jumax9 (2015-02-25 15:14:04)
Offline
You have rebuilt dwm after changing config.h, right? (and made some other change to ensure it is using the new config).
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Yes, I have.
I usually change the name of one of the tags to make sure I'm running the "newest" version.
-------
Just after posting the question, I tried running dmenu from gnome using gnome shorcuts and it doesn't work either (running it from a terminal works ok again, of course).
I don't know gnome in any deep (so I don't know whether that's important at all), but I thought it was worth mentioning it.
Offline
Ah, sorry, it's been a while since I used dmenu, but I just checked, and I'm pretty sure the problem would be in dmenu_run. dmenu_run is just a one line script that calls other programs. You can edit the dmenu_run script to specify the full path to these other programs (dmenu_path and dmenu itself). Alternatively if these are also installed at ~/bin/ then you could add that to your path and export it from within dmenu_run (or a parent process).
EDIT: actually, if dmenu_run works from the terminal, I gather these others are already somewhere specified in $PATH, but it is likely that your PATH variable is set after dwm starts - so dwm doesn't inherit the changes to PATH, and thus neither does the dmenu_run process.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Yep, that was it.
Now, I don't understand why it's done that way though (I mean, I can understand it for dwm's goal of simplicity, but I woud've expected from Gnome to have .bashrc present before doing anything)
Anyway, thanks!
Offline