Re: [dev] [surf] few bugs

From: Evan Gates <evan.gates_AT_gmail.com>
Date: Thu, 29 Oct 2009 10:42:52 -0700

>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
Received on Thu Oct 29 2009 - 17:42:52 UTC

This archive was generated by hypermail 2.2.0 : Thu Oct 29 2009 - 17:48:03 UTC