Bug 428217

Summary: When changing the KGpg home directory, the key list doesn't update, even with an F5; KGpg must be restarted
Product: [Applications] kgpg Reporter: Fredrick Brennan <copypaste>
Component: generalAssignee: Rolf Eike Beer <kde>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 20.08   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Fredrick Brennan 2020-10-25 09:09:15 UTC
SUMMARY
When changing the KGpg home directory, the key list doesn't update, even with an (or multiple presses of) F5; KGpg must be restarted.

STEPS TO REPRODUCE
1. Have two GnuPG home directories. If you don't already, 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. Switch to the other home directory.

OBSERVED RESULT
Key list not updated.

EXPECTED RESULT
Key list would automatically update.

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Plasma: 5.20.1
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1