Page MenuHome GnuPG

Re: gnupg/182
Closed, ResolvedPublic

Description

Description

--7LkOrbQMr4cezO2T
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

> Synopsis: gpg doesn't display photo ids when in --with-colons mode

> Photo IDs not appearing in the --with-colons listing is a
> feature, not a bug.  The assumption is that when in
> --with-colons mode, GnuPG is being called from an external
> program and to cause a viewer to execute (and possibly pop
> up a window) violates that intent.

Hrm, that was also my impression. My idea was to use --batch-mode to
show that photos should not be displayed unless --show-photos was also
explicitly given.

> That said, I'll document the --attribute-fd format for the
> next version.  It is pretty simple, and for most purposes
> you can just throw away the first 16 bytes and treat the
> rest as a JPEG file.

While that is (nearly) fine for an application, it is hard to do
properly for a script. Also, there is no way to parse that stream
properly unless I implement a full JPEG parser, since there may be
multiple photo IDs and there is no way to separate them in the stream,
and it is also hard to associate these files back to the --list-keys
output since the stream does not have any information about which photo
belongs to which key.

It's just simpler to use "gpg --batch --show-photos --photo-viewer 'cp
%i /tmp/%k.jpg'" --with-colons --list-keys" than parse the
--attribute-fd stream, especially since the latter cannot be done
correctly ATM.

   Simon

--=20
GPG Fingerprint: 040E B5F7 84F1 4FBC CEAD  ADC6 18A0 CC8D 5706 A4B4

--7LkOrbQMr4cezO2T
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE/AefNGKDMjVcGpLQRAh6CAJwJHNp/Ex1cUoaxV34cJZ0uNC90egCdG4/0
Q+RFGlTzjZChnsQw7GQclY0=
=bmxb
-----END PGP SIGNATURE-----

--7LkOrbQMr4cezO2T--

Fix

Unknown