Bug 435948 - Hardcoded expectation where gpg has its home directory
Summary: Hardcoded expectation where gpg has its home directory
Status: RESOLVED DUPLICATE of bug 399230
Alias: None
Product: kmymoney
Classification: Applications
Component: file (show other bugs)
Version: 5.1.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-20 06:31 UTC by Ralf Habacker
Modified: 2021-06-30 06:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***