Re: [dev] dmenu fast grab

From: Rob <robpilling_AT_gmail.com>
Date: Sun, 20 Mar 2011 19:22:57 +0000

> Yeah, I've found that annoying before. The only problem it has is if
> stdin is dependent on tty input everything locks up. The '-f' flag may
> be a solution, so long as it's treated with fear.

Probably should've added something to the patch for that, actually.
Guess one could check if stdin was a terminal and prevent the fastgrab.

But then there's always the obscure use cases, like if someone sshs in
and tries to do something like
DISPLAY=:0 dmenu -f
in which case, there wouldn't be a lock up and refusing to run would be
silly.

Probably best just leaving it like you said, and treating it with fear.

> The patch has a typo, btw: usage claims to add a '-q' flag.

Good spot, thanks

> Thanks,
> cls
Received on Sun Mar 20 2011 - 20:22:57 CET

This archive was generated by hypermail 2.2.0 : Sun Mar 20 2011 - 20:24:04 CET