On 29-10-2009 10:42:52, Evan Gates wrote:
> >2) When you choose your URI (C-g by default) and then abort it
> >pressing [esc] or something, the document is trying to be loaded anyway,
> >with empty address. It's a bit too much for the setprop() macro (or is
> >it?), but I think some function may check the input from dmenu and set
> >it only if it's not empty.
>
> Change the
> "xprop -id $1 -f $0 8s -set $0 \"`echo -n | dmenu || exit 0`\""
> to
> "uri=\"`echo -n | dmenu`\" && "xprop -id $1 -f $0 8s -set $0 \"$uri\""
>
> This way if the user hits escape, dmenu returns 1, and xprop isn't executed.
>
> -emg
There is a typo in your string, it should go like:
"uri=\"`echo -n | dmenu`\" && xprop -id $1 -f $0 8s -set $0 \"$uri\""
Thanks for your help though, works like a charm.
Regards,
Ted
-- =========================================================== () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachmentsReceived on Thu Oct 29 2009 - 18:22:00 UTC
This archive was generated by hypermail 2.2.0 : Thu Oct 29 2009 - 18:36:01 UTC