https://bugs.kde.org/show_bug.cgi?id=428215
Bug ID: 428215 Summary: Expert mode key generation only works if using default GnuPG home Product: kgpg Version: 20.08 Platform: Archlinux Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: k...@opensource.sf-tec.de Reporter: copypa...@kittens.ph Target Milestone: --- Created attachment 132710 --> https://bugs.kde.org/attachment.cgi?id=132710&action=edit Screenshots. SUMMARY Expert mode KGpg key generation only works if the user is using the default GnuPG home. This is common for some users who juggle multiple keychains, which there are a variety of good reasons for doing. STEPS TO REPRODUCE 1. Outside KGpg, create a GnuPG home dir. E.g., run at minimum: $ mkdir -m 0700 ~/.gnupg-kde_bug_report $ gpg2 --homedir=!$ --list-keys gpg2 --homedir=~/.gnupg-kde_bug_report --list-keys gpg: keybox '/home/fred/.gnupg-kde_bug_report/pubring.kbx' created gpg: /home/fred/.gnupg-kde_bug_report/trustdb.gpg: trustdb created $ touch ~/.gnupg-kde_bug_report/gpg.conf 2. Inside KGpg, go to «Settings→GnuPG Settings». Set the home location to ~/.gnupg-kde_bug_report using the GUI. 3. «Keys→Generate Keypair…». Observe it works if not clicked «Expert Mode». (bugzip/working example.png) 4. «Keys→Generate Keypair…». Observe breakage as soon as clicked «Expert Mode». (bugzip/broken example.png) OBSERVED RESULT Terminal opens and fails to launch child gpg2. EXPECTED RESULT Successful launch of gpg2. SOFTWARE/OS VERSIONS Linux: Arch Linux KDE Plasma: 5.20.1 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.1 -- You are receiving this mail because: You are watching all bug changes.