Page MenuHome GnuPG

Re: gnupg/182
Closed, ResolvedPublic



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


> 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.


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

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

Version: GnuPG v1.2.2 (GNU/Linux)





Event Timeline

werner added a subscriber: werner.

Merged with 182