Bug 435948

Summary: Hardcoded expectation where gpg has its home directory
Product: [Applications] kmymoney Reporter: Ralf Habacker <ralf.habacker>
Component: fileAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 5.1.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description Ralf Habacker 2021-04-20 06:31:16 UTC
STEPS TO REPRODUCE
1. download kmymoney portable snapshot from kmymoney.org/snapshots.php
2. download dbgview and start it
3. unpack kmymoney snapshot and start kmymoney

OBSERVED RESULT
With gpg 2.2 the home directory was changed from %USERPROFILE%/gnupg to %USERPROFILE%/AppDir/Roaming/gnupg (see bug 419656), which is logged in kmymoney with a missing path.

  ...
  GPG Home dir <empty>
  ...

EXPECTED RESULT
kmymoney should be able to find the GPG provided home dir regardless from the currently used path.

SOFTWARE/OS VERSIONS
Windows: 10
KDE Frameworks Version: 5.65.0
Qt Version: 5.11
 
ADDITIONAL INFORMATION
A gpg installation includes a command line tool to determine the currently used path 

gpgconf --list-dirs
...
homedir:<path>

The same information can also be retrieved using the libgpgme function gpgme_get_engine_info (see https://www.gnupg.org/documentation/manuals/gpgme/Engine-Information.html#Engine-Information for an example)
Comment 1 Thomas Baumgart 2021-06-30 06:30:34 UTC

*** This bug has been marked as a duplicate of bug 399230 ***