Kleopatra couldn't determine the GnuPG home directory

Hi Team

I am using Windows 11 24H2 and Gpg4win 4.3.1. The system language is zh_CN.

When I finish installing Gpg4win and open Kleopatra, Kleopatra does not work properly and prompts to set system variables. In addition, GNUPG can be used normally in CMD.

I’ve tried setting the system variable GUNPGHOME and uninstalling and reinstalling multiple times, but none of them worked. I also tried switching the system language to en_US, and it didn’t work.

I found a post with a similar question in the forum. The difference is that no Chinese characters in my Gpg4win configuration file path.
Similar question

I’ve tried a lot, and this really bothers me. Please help me.

Hi @user5

sorry to heard that you are having problems.

For us, the next step is to reproduce the problem, so we can analyse the situation and develop and improvement.

So the question from the other discussion is interesting:

Do you know an easy way to create a profile path with such characters on a German or Englisch Windows 10/11 system?

Can you also give an example GNUPGHOME variable that you have used?

(Did you set it in a way that Kleopatra will see the variable at startup? This may need to be set in the system environment.)

Regards,
Bernhard

Hi!

Just got this error. My 50 cents…

In my case I have Gpg4win 4.4.x and GNU Privacy Guard 2.4.x.

Winget offered to upgrade GNUPG for 2.5.x then it broke Gpg4win.

I remove both and install older versions (2.4.8 + 4.4.1) and it works.

I just got the same error on gpg4win v4. I fixed it by downloading the latest v5 installer and using it to upgrade.

I don’t know what caused it, but I often use winget upgrade too. I’ll keep an eye on that, next time.