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
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org https://lists.gnupg.org/mailman/listinfo/gnupg-users