Re: --list-keys fails with missing .gnupg directory and --no-options

2023-12-21 Thread Werner Koch via Gnupg-users
Hi! Right, no-options also inhibits the homedir creation: --no-options Shortcut for --options /dev/null. This option is detected before an attempt to open an option file. Using this op‐ tion will also prevent the creation of a ‘~/.gnupg’

--list-keys fails with missing .gnupg directory and --no-options

2023-12-21 Thread Jeff Bailey
Hi! I'm trying to make a script resilient against a bad gnupg.conf file, so I tried passing --no-options to it. However, it then caused the command to fail on machines where gnupg had never been run, so ~/.gnupg didn't exist yet with the following error: gpg: Fatal: /home/jbailey/.gnupg: