On Donnerstag, 27. Februar 2025 16:32:29 Mitteleuropäische Normalzeit Thomas Schweikle via Gnupg-users wrote: > 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\\g > nupg: directory does not exist! > > from an MSYS shell. Any idea how to overcome this problem?
I doubt that it helps but try set GNUPGHOME=%APPDATA%/gnupg i.e with a forward slash instead of a backslash. Or try set GNUPGHOME=C:/Users/<user>/AppData/Roaming/gnupg Regards, Ingo
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org https://lists.gnupg.org/mailman/listinfo/gnupg-users