Project

General

Profile

Bug #10889

shared-mime-info associates .key files with LibreOffice Writer in GNOME Files

Added by anonym over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
01/09/2016
Due date:
% Done:

100%

Feature Branch:
bugfix/10889-dot-key-file-association
Type of work:
Code
Blueprint:
Starter:
Affected tool:

Description

We should perhaps try a more recent shared-mime-info.


Related issues

Related to Tails - Bug #10571: The 'application/pgp-keys' MIME type has bad application associations Resolved 11/17/2015
Related to Tails - Bug #15213: Tails signing key can't be imported from Seahorse with the default key files filter Resolved 01/22/2018

Associated revisions

Revision 318bb808 (diff)
Added by intrigeri over 3 years ago

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:
https://bugs.freedesktop.org/show_bug.cgi?id=93656

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.

Will-fix: #10889

Revision d2a253b3
Added by anonym over 3 years ago

Merge remote-tracking branch 'origin/bugfix/10889-dot-key-file-association' into devel

Fix-committed: #10889

History

#1 Updated by intrigeri over 3 years ago

  • Related to Bug #10571: The 'application/pgp-keys' MIME type has bad application associations added

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

Adding application/x-iwork-keynote-sffkey=seahorse-pgp-keys.desktop to /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>

#4 Updated by intrigeri over 3 years ago

  • Assignee changed from intrigeri to anonym
  • % Done changed from 10 to 50
  • QA Check set to Ready for QA
  • Feature Branch set to bugfix/10889-dot-key-file-association

#5 Updated by anonym over 3 years ago

  • Status changed from In Progress to Fix committed
  • % Done changed from 50 to 100

#6 Updated by anonym over 3 years ago

  • Assignee deleted (anonym)
  • QA Check changed from Ready for QA to Pass

#7 Updated by anonym over 3 years ago

  • Status changed from Fix committed to Resolved

#8 Updated by intrigeri over 1 year ago

  • Related to Bug #15213: Tails signing key can't be imported from Seahorse with the default key files filter added

Also available in: Atom PDF