Hi,

On Saturday 1 December 2007 16:06, Roland Rosenfeld wrote:
> But the feature seems to be a little bit broken if there is more than
> one photo ID on a key, because gpgsigs shows the last image for this
> key on all photo IDs of this key.

The issue here is that gnupg, when invoked with show-photos, shows all 
photoids on that key. gpgsigs then overwrites the earlier photo with the 
latter one.

The solution is twofold:

1)  The command calling gpg needs to do a test to create a unique filename, 
for example something like this:

system "gpg --photo-viewer 'NUM=0; while [ -e %k.\$NUM.eps ]; do 
NUM=\$((\$NUM+1)); done; convert - %k.\$NUM.eps' --list-options 
show-photos --list-key $key > /dev/null";

This is not quite beautiful code. Are there ideas for a better solution?

2) This call of gpg needs to be changed so it gets called once per key, not 
once per photoid. Otherwise the code above will create a new image file for 
each photo id, and that times the number of photoids.


Thijs

Attachment: pgpkmsZ5D3fE6.pgp
Description: PGP signature

Reply via email to