On Thu, Sep 13, 2007 at 10:21:51PM +0200, Panos P. wrote:
> On 13-09-2007 21:33, Xavier <[EMAIL PROTECTED]> wrote:
> > In config.arg.h and config.default.h , dmenu is run like this :
> > exe=`dmenu_path | dmenu` && exec $exe
> > 
> > This doesn't work for commands with arguments, eg "xterm -e top" or "import
> > -w root root.png" or whatever.
> > 
> > But running dmenu like this works fine (thanks to rob__ on #dwm for that 
> > hint ;) :
> > exe=`dmenu_path | dmenu` && eval "exec $exe"
> > 
> > Does it have any downsides? If not, maybe it could be done in both config.h 
> > examples.
> >
> actually for me on FreeBSD that didn't work at all (with arguments or not)
> 

Oh sorry, since that command is already quoted in config.h , it should be :
eval \"exec $exe\"
But apparently the following works as well :
eval exec $exe

Not sure if that was your problem, and anyway maybe your version is better.

Reply via email to