GNOME Bugzilla – Bug 458809
MIME type of .asc files
Last modified: 2012-03-15 12:46:30 UTC
Please describe the problem: Because of the file extension with which public keys are exported (.asc), a public key cannot be exported from Seahorse then imported via Nautilus. Steps to reproduce: 1. Open up the main Seahorse program 2. Export a public key from one of your private keys, keeping the default extension 3. Double click the file you exported in Nautilus Actual results: Nautilus produces an error message, saying the extension of the file does not match the contents of the file (it guesses from the extension that the file's MIME type is application/pgp-encrypted, but the file is actually of type application/pgp-keys). Expected results: Seahorse will try to import the public key (not much will happen though because you already have the private key for that public key) Does this happen every time? Yes Other information: I can think of two solutions, but I'm not sure which is best: 1. Seahorse should export public keys with the extension ".pkr" by default 2. the MIME database entry should be changed to recognise that .asc files can be either application/pgp-keys or application/pgp-encrypted, and not just the latter.
A bug with a patch has been filed with freedesktop.org. https://bugs.freedesktop.org/show_bug.cgi?id=11680
Created attachment 92126 [details] [review] add .asc glob for application/pgp-keys That was a quick response :). Seahorse ships its own MIME entries, presumably for people who don't have the freedesktop database, so this tiny patch adds the glob locally.
*** Bug 459330 has been marked as a duplicate of this bug. ***
Seahorse ships its own mime entries because freedesktop.org didn't provide the others until recently. The idea is that we won't have to ship our own at all and they should be deleted. I'm going to leave this bug open to remind me to delete them.
Ping
This bug is also reported downstream at Launchpad / Ubuntu: https://bugs.edge.launchpad.net/seahorse/+bug/248479
I remember that opening .asc files in Nautilus worked in previous releases of Ubuntu. ''This bug is an regression.'' Besides Seahorse, this issue also affects Evolution: if somebody sends me mail with encrypted files attached (shoots me with caff for example), the files won't be opened/imported to Seahorse with a simple click like it used to. Now (Ubuntu 9.10) I need to manually save the files from an e-mail in Evolution and then run gpg --import from the command line for the files. Really annoying regression for me..
The Gcr library now ships mime files (in 3.2 and 3.4) which I believe fix these issues. Please reopen if you still see problem, and I'll work with you to try and figure out the issue, and whether we can fix it or not.
I just tried it, and it does still not work. I'm running Ubuntu 11.10 with Gnome Shell and all the newest updates. Package: libgcr-3-1 Version: 3.2.2-0ubuntu0.1 I'll try again once I have upgraded to Gnome 3.4.
Thanks.