Re: [dwm] arguments don't work with default dmenu command

From: Panos P. <mallinanga_AT_gmail.com>
Date: Thu, 13 Sep 2007 22:21:51 +0200

On 13-09-2007 21:33, Xavier <shiningxc_AT_gmail.com> 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)

so i replaced the whole command with the (IMHO) simpler:
  "exec `dmenu_path | dmenu`"

hope that helps..

-- 
Panagiotis (Panos) Paganis (aka Mallinanga)
<mallinanga_AT_gmail.com>
GPG/PGP Key-ID: 0xC590FF74
http://www.mallinanga.de/pubkey.asc
FreeBSD 6.2-RELEASE-p7

Received on Thu Sep 13 2007 - 22:21:58 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:52:49 UTC