I tried to decrypt an email on a computer on which I had never run gpg before. I had the .gnupg file from my computer which I normally use for encrypted emails on a USB stick. So I plugged this stick in, opened Kgpg and set under configure Kgpg the path to /run/media/uli/ADATA UFD/.gnupg. It didn’t work for some reasons so I left it until I could check the email on my other computer. Today I wanted to check what was wrong and tried to open Kgpg and it does not run any more. I get the error message “GnuPG failed to start. You must fix the GnuPG error first before running KGpg.” CLicking on details tells me: “gpg: option file `/run/media/uli/ADATA UFD/’: No such file or directory”.
Now I tried to find where these options are set but couldn’t find anything. I deleted the ~/.gnupg file and restarted - still the same error message. Trying to start Kgpg with the USB stick mounted gives the same error message and the stick cannot be unmounted afterwards. The command:
ps -ef | grep ADATA
uli 3173 1954 4 14:39 ? 00:00:01 /usr/bin/dolphin /run/media/uli/ADATA UFD
uli 3188 2990 99 14:39 ? 00:00:12 gpg --no-secmem-warning --no-tty --no-greeting --options /run/media/uli/ADATA UFD/ --homedir /run/media/uli/ADATA UFD --debug-level none --version
uli 3190 3072 0 14:40 pts/0 00:00:00 grep --color=auto ADATA
Only after the “kill 3188” command can I unmount the USB stick. If I could get into Kgpg I could reset this setting to ~/.gnupg but this does not work. So my question is how can I reset this setting for gnupg? the command “gpg --homedir ~/.gnupg” does not work as it starts only the gpg programme with those options in the shell. Any ideas how to set gnupg back to its normal path?