shared-mime-info associates .key files with LibreOffice Writer in GNOME Files
We should perhaps try a more recent
Associate Apple Keynote MIME type with Seahorse, to workaround shared-mime-info bug.
*.key are now seen as Apple Keynote files by the MIME machinery.
We've reported this upstream:
In the context of Tails, I guess we should rank keynote presentations
lower compared to OpenPGP keys, so here we go ⇒ OpenPGP armored
public keys named *.key shall be open with Seahorse.
#2 Updated by intrigeri over 3 years ago
- Subject changed from GNOME Files associates .key files with LibreOffice Writer to shared-mime-info associates .key files with LibreOffice Writer in GNOME Files
- Status changed from New to In Progress
- % Done changed from 0 to 10
I'll try to fix that in 2.0, but note that Tails 1.8.1 has exactly the same problem.
So, #10571 is back. Apparently application/pgp-keys is correctly associated, but
*.key are now seen as Apple Keynote files by the MIME machinery (
shared-mime-info). On sid, if I rename such a file to
.asc, then it's open with "Import a key", as desired. Upgrading to shared-mime-info 1.5-2~bpo8+1 has no effect.
/etc/gnome/defaults.list and killing nautilus fixes the problem in a live Tails/Jessie. In the context of Tails, I guess we should rank keynote presentations lower compared to OpenPGP keys, so I'll just do that.
The nicer way to get what we want would be to teach shared-mime-info to give less weight to the
*.key glob, compared to actual file content. I'll report a bug against shared-mime-info upstream. I've tried to do naively, and failed:
--- a/freedesktop.org.xml.in +++ b/freedesktop.org.xml.in @@ -6499,7 +6499,7 @@ command to generate the output files. <match type="string" value="index.apxl" offset="30"/> </match> </magic> - <glob pattern="*.key"/> + <glob weight="10" pattern="*.key"/> <alias type="application/vnd.apple.keynote"/> </mime-type>
#3 Updated by intrigeri over 3 years ago
Reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=93656