>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