Kleopatra no longer opens .gpg files after double-clicking in Tails 7.0+

Description

We recently started tracking an issue in SecureDrop where Kleopatra no longer opens .gpg files via double-clicking or choosing "open with" in Tails 7.1. We suspect this may be related to a file type association change introduced in this release, but have not yet directly found a cause in the Tails 7.1 changelog. We are not able to reproduce this bug in Tails 7.0.

Steps to Reproduce

  1. Encrypt a file against a public key for which the corresponding private key is stored on the persistent storage of a Tails drive
  2. Copy the file to a separate USB drive and mount it on the computer booted to Tails with the persistent storage unlocked
  3. Double-click the file to decrypt it

Expected Behavior

This launches Kleopatra, from which you can decrypt the file and save the result to the same directory.

Actual Behavior

Nothing happens besides a spinning mouse icon.

Right clicking and choosing "Open with Kleopatra" also doesn't work.

Workarounds

An encrypted file can still be decrypted from within Kleopatra via File -> Decrypt/Verify

Similarly, if Kleopatra is already running, then double clicking on an encrypted file will work.

Once a single .gpg file has been decrypted in either of these ways, subsequently .gpg files can be decrypted by double-clicking. They will open in Kleopatra as expected, regardless of whether Kleopatra is already open. This needs to done once every time Tails starts.

Solutions

In Debian unstable there is a fixed version: 24.12.3-3

Debian Trixie fixed version: 24.12.3-1+deb13u1 (debian/trixie branch on salsa)

#21281 (comment 273888)

Edited by hefee