Environment variable GNUPGHOME with Windows + MSYS2
Thomas Schweikle
tschweikle at gmail.com
Thu Feb 27 16:32:29 CET 2025
Hi!
Within Windows gnupg uses "%APPDATA%\gnupg" for its keyring and
configurations.
MSYS2 gpg uses "/c/msys/home/%USERNAME%/.gnupg". Now I had the idea to set
GNUPGHOME so both could work with the same directory:
set GNUPGHOME=%APPDATA%\gnupg
This worked for gnupg from the gnupg-package. It worked for Gpg4Win
included gpg as well, but the MSYS included version gave
gpg: keyblock resource
'/c/Users/<user>/AppData/Roaming/gnupg/C:\\Users\\<user>\\AppData\\Roaming\\gnupg/pubring.kbx':
No such file or directory
gpg: Fatal:
/c/Users/<user>/AppData/Roaming/gnupg/C:\\Users\\<user>\\AppData\\Roaming\\gnupg:
directory does not exist!
from an MSYS shell. Any idea how to overcome this problem?
gnupg: 2.2, 2.4, 2.5
--
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20250227/37d3114d/attachment.html>
More information about the Gnupg-users
mailing list