Re: [PATCH] pinentry-gtk-2: Fix ERROR: could not grab keyboard

Stanislav Ochotnicky <[email protected]> Tue, 27 Apr 2010 17:26:09 +0200
Newsgroups gmane.comp.encryption.gpg.gpa.devel
Organization Red Hat
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============1528076279==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enig8C3A7957AE206AC332CC1255"

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig8C3A7957AE206AC332CC1255
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 04/27/2010 04:36 PM, Stanislav Ochotnicky wrote:
> This patch adds 50ms timer before actually trying to grab
> keyboard. Simple tests showed that this is enough to fix grabbing
> failure and 50ms should be fast enought to prevent sniffing of
> keyboard input.

Now that I think about it...maybe it would be best if we kept trying to
grab keyboard every X ms until we get it? Meanwhile if pinentry is
configured to use global grab and we don't have it yet, display BIG RED
WARNING. pinentry is not long running application so this should not
have that significant impact on performance...what do you think?

--=20
Stanislav Ochotnicky <[email protected]>
Associate Software Engineer - Base Operating Systems Brno

Mobile: +420 775 633 759
Red Hat Inc.                               http://cz.redhat.com



--------------enig8C3A7957AE206AC332CC1255
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkvXAhEACgkQB9Uc/HGhZ3zITwCfbX6LBrjlOBuL2mEWtzESVtES
mkEAnjviRUWVDI59GzT5O657XIG5o6Rk
=q8yJ
-----END PGP SIGNATURE-----

--------------enig8C3A7957AE206AC332CC1255--


--===============1528076279==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Gpa-dev mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gpa-dev

--===============1528076279==--