Support reading gpg directory from $GNUPGHOME
Affected version
- Passwords and Keys (Seahorse) version: 41.0
- Related info: Distro: Pop!_OS 22.04 LTS
Steps to reproduce
- Add
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
to .bashrc - Move the
.gnupg
to"$XDG_DATA_HOME"/gnupg
- Open seahorse
Current behavior
Seahorse is unable to find any gpg keys and creates a new .gnupg
folder in the home directory instead.
Expected behavior
It should follow the XDG guidelines rather than relying on folder in home directory.
Additional information
Output of gpg
gpg (GnuPG) 2.2.27
libgcrypt 1.9.4
Copyright (C) 2021 Free Software Foundation, Inc.
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: /home/kira/.local/share/gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
As you can see the gpg follows the xdg guidelines as well. seahorse should do the same.