Presumably since https://bugs.freedesktop.org/show_bug.cgi?id=71827 was resolved in 1.3, any OpenPGP armored public key (e.g. exported with "gpg --armor --export $KEY_ID" is recognized as application/x-iwork-keynote-sffkey. The ideal behavior IMO would be that the "BEGIN PGP PUBLIC KEY BLOCK" magic has precedence over the .key file extension.
Created attachment 138470 [details] [review] suggested patch Feel free to modify and apply as needed; I'm probably not going to follow up beyond this. (In case you have trouble applying the full patch; note that tests/test-garbage.key is just a file populated with junk from /dev/urandom)
(I'm not a maintainer of shared-mime-info.)
Thanks Dwayne for proposing a patch! What's the next step here? Would it help if I tested whether Dwayne's patch fixes the problem I've reported?
Comment on attachment 138470 [details] [review] suggested patch Review of attachment 138470 [details] [review]: ----------------------------------------------------------------- ::: tests/list @@ +643,4 @@ > test-public-key.asc application/pgp-keys xoo > test-secret-key.skr application/pgp-keys ooo > test-secret-key.asc application/pgp-keys xoo > +# files named *.key shouldn't be detected as Apple Keynote They should, you set up the glob to that effect. Maybe the comment doesn't match what you want here.
Created attachment 140852 [details] [review] suggested patch Updated patch attached.
Gentle ping on this? :)
Just wondering what else might needed on my end for this?
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/39.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.