This forum has been archived. All content is frozen. Please use KDE Discuss instead.

No more Windows versions?

Tags: None
(comma "," separated)
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: No more Windows versions?

Sun Sep 20, 2020 5:50 pm
dunbankin wrote:There's something else preventing it from working in KMM. Is GPG encryption simply not supported in KMM for Windows, so the developers have purposefully deliberately greyed it out because it's too difficult to solve whatever is preventing it from working? If only there were a KDE Developer handy who could advise me....? :)

I agree, there's something else but the (KMyMoney) developers have not deliberately turned something off. KMyMoney relies on a library called GpgME++ and checks for the availability using the following code
Code: Select all
bool KGPGFile::GPGAvailable()
{
  GpgME::initializeLibrary();
  const auto engineCheck = GpgME::checkEngine(GpgME::OpenPGP);
  if (engineCheck.code() != 0) {
    qDebug() << "GpgME::checkEngine returns" << engineCheck.code() << engineCheck.asString();
    return false;
  }
  return true;
}
and that simply returns false on Windows but true on Linux. (I just noticed, that the library is unmaintained but don't know what to do instead)

dunbankin wrote:Do I need to create a bug report in order to raise the issue?

We (the KMyMoney developers) are aware of the problem under Windows but apparently don't have an immediate resolution to the problem. Seems we need to replace the unmaintained code, but I don't know what to use instead. Ideas/hints are always welcome.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
User avatar
dunbankin
Registered Member
Posts
22
Karma
0

Re: No more Windows versions?

Tue Sep 22, 2020 10:31 am
Thanks for the clarity of your response, ipwizard. I finally know what the issue is.
Unfortunately, I'm unable to help - I have no relevant skills to offer.
Questions for you:
1) If I reverted to KMM v4.8.4 from https://download.kde.org/stable/kmymoney/4.8.4/win64/kmymoney-mingw64-4.8.4-2.1-setup.exe, would I be able to import directly my v5.1 unencrypted .kmy file?
2) Or were there any .kmy file format changes between v4.8.4 and v5.1 that make that impossible?
3) Would there be any other disadvantages to reverting to v4.8.4?

I take Stephen's point about using Veracrypt (which I already use), but it's an added layer of complication.

Regards
John
Stephen Leibowitz
Registered Member
Posts
54
Karma
0

Re: No more Windows versions?

Wed Sep 23, 2020 2:49 pm
In the Windows version of KMyMoney 5.1.0, Help > About KMyMoney > About(tab) says:
Compiled with the following optional features:
Addressbook integration
Holiday regions integration

This corresponds to a section of KAboutData initializeCreditsData() in kcreditswindow.cpp:
Code: Select all
#ifdef ENABLE_GPG
  features << i18n("GPG encryption");
#endif
#ifdef ENABLE_ADDRESSBOOK
  features << i18n("Addressbook integration");
#endif
#ifdef ENABLE_HOLIDAYS
  features << i18n("Holiday regions integration");
#endif
The preprocessor macro ENABLE_GPG was apparently not defined. gpg-agent could be running and available on a user machine at runtime, and it would not cause ENABLE_GPG to be defined.

There is a block of about 400 lines in kpgfile.cpp that starts at line 43 with:
#ifdef ENABLE_GPG

At line 330, which is in the ENABLE_GPG block, we see:
const auto engineCheck = GpgME::checkEngine(GpgME::OpenPGP);
That line was mentioned in a previous forum post.

With ENABLE_GPG not defined, the ~400 lines would be ignored. Instead, the block starting at line 435 would be processed:
#else // not ENABLE_GPG
// NOOP implementation

Here are two of the functions in the NOOP implementation block. The rest are similar.
Code: Select all
KGPGFile::KGPGFile(const QString& fn, const QString& homedir, const QString& options) : d(0)
{
  Q_UNUSED(fn);
  Q_UNUSED(homedir);
  Q_UNUSED(options);
}

KGPGFile::~KGPGFile()
{
}
For those looking at an older version of the source code, Gpgmepp_FOUND was the preprocessor macro in 5.0.8 instead of ENABLE_GPG.

dunbankin: Out of an abundance of caution, in Kleopatra you should run Settings > Perform Self-Test. I expect that all the Kleopatra tests will pass, but in KMyMoney the GPG settings for XML Storage will be grayed out.
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: No more Windows versions?

Wed Sep 23, 2020 3:36 pm
Very good analysis. This will give us* ipwizard another handle to look at. I have to admit, that it never came to my mind that the GPG support may not be compiled into KMyMoney at all.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
User avatar
dunbankin
Registered Member
Posts
22
Karma
0

Re: No more Windows versions?

Wed Sep 23, 2020 4:40 pm
Thanks, Stephen. It sounds from the first few lines of your reply as if Addressbook integration & Holiday regions integration are the new v5 features - I don't really understand what they do, but it doesn't sound like anything I'd miss.
The rest of your post was pretty incomprehensible to me (I don't know C++), but it sounds as if ipwizard was impressed...
I've run the kleopatra self-test. I don't know how to paste a screenshot, or attach an image file, into this forum, but there were 12 tests, and they all were marked 'passed'. In KMM, Use GPG is still greyed out.
Incidentally, kleopatra reports that User ID is "not certified". Could that be what's causing the problem?

Finally, could I have your advice to my question above: If I reverted to KMM v4.8.4 from https://download.kde.org/stable/kmymoney/4.8.4/win64/kmymoney-mingw64-4.8.4-2.1-setup.exe, would I be able to open my v5.1 unencrypted .kmy file?
Regards
John
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: No more Windows versions?

Wed Sep 23, 2020 7:54 pm
For those interested, I found a slide deck that shows some information about how gpgmepp works together with gpg. I still wonder what it needs so that the KMyMoney build environment finds the gpgmepp library.

Regarding the question about using the 5.x file on 4.8: that should in general be no problem. There is a bit of a difference in the handling of online banking plugins but if you don't use them, it does not seem to be a problem. If you do use them, you may need to have to remap the online accounts. 4.8 is so long ago (for me) that I don't remember all the details that could have an influence on this step. Keep backups and you should be safe.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
User avatar
dunbankin
Registered Member
Posts
22
Karma
0

Re: No more Windows versions?

Sat Sep 26, 2020 12:04 pm
Thanks for the advice, ipwizard. Talking of back-ups, I have another question for you: Automatic backup on quitting KMM seems to have disappeared - v4.x used to create a rotating series of about 8 file backups automatically, each time you quit, adding ".1~", ".2~" etc to the data filename. It doesn't seem to be happening any more with v5.1, and I can't find anything in Settings to turn it on, or any mention in the support forum. The documentation online points to the File/Backup,,, option, which seems to work, but it's a manual process - can v5 no longer do something as essential as an automatic backup routine? Am I going to have to create a silly script to copy / rename data files to reproduce what v4.x used to do for me automatically?
Regards
John
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: No more Windows versions?

Sat Sep 26, 2020 12:46 pm
What? (Sorry for being surprised). This option is still there (unless it is again not compiled for Windows). I use it all the time (on Linux though).

I just fired up KMyMoney 5.1.0-4763930b6 on a Windows box which has it right there in Settings/Configure KMyMoney/General/Global/Autosave options. Number of backups to keep is set to 10 here. Works like a charme.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
User avatar
dunbankin
Registered Member
Posts
22
Karma
0

Re: No more Windows versions?

Sat Sep 26, 2020 1:12 pm
Profuse apologies, ipwizard ! Sorry to have startled you and slandered KMM. I didn't spot it - my bad. The online documentation under Section 4: "Backing up", doesn't mention it - it wasn't until i scrolled right to Settings towards the end that I found it.
Suggestion: Perhaps add a note to the documentation: "See also Section 20, Settings/General/Global/Autosave, for automatic backups." or some such wording. That might help other idiots like me to find it.
Apologies again...
Incidentally, I've taken on board Stephen's suggestion and created a script to use Veracrypt to mount an encrypted container file as a drive, then fire up KMM and my data file, finally dismounting when KMM quits. Long-winded, but at least I can stay with the latest version of KMM going forward....
Regards
John
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: No more Windows versions?

Sat Sep 26, 2020 1:16 pm
No problem, we all get lost now and then in the wilderness of documentation and features. The forum here is to help out of the jungle. :D


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
christianh
Registered Member
Posts
2
Karma
0

Re: No more Windows versions?

Thu Oct 22, 2020 5:00 am
Hi,

my issue refers to the subject in this thread.

are there any windows binarys with version newer then 5.0.6 including aqbanking available? I know that preview builds from stable and master branches are available, but after installing I noticed that the aqbanking interface is not included in the installation.

Can anyone help me in that case?

Best regards
Christian
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: No more Windows versions?

Thu Oct 22, 2020 10:59 am
You may try to take a look at another site of snapshots.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
christianh
Registered Member
Posts
2
Karma
0

Re: No more Windows versions?

Thu Oct 22, 2020 1:44 pm
Thanks a lot!

I've sucessfully installed the newest version (64-Bit) and everything seems to work fine. Except for the fact that all surface symobls are not showing up. Is this a known issue?

Best regards
Christian
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: No more Windows versions?

Thu Oct 22, 2020 3:23 pm
This may have been fixed in the meantime. These snapshots don't get build daily but only manually from time to time. As it looks, we might have found the problem for the failing windows builds and fixed it. We'll see after the next run.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
ghostbear
Registered Member
Posts
14
Karma
0
OS

Re: No more Windows versions?

Thu May 13, 2021 12:54 am
Hi, reading a recent post concerning Veracrypt I found that someone there mentioned this thread and said, snipped, "...But GPG did not work with KMyMoney 5.06 on Windows and am unsure about the more recent KMyMoney versions.".

I decided to try and launched version 5.1 on Windows (I'm a MacOS user), although a gpg-agent was running at the time the option to use GPG was still greyed in settings. The agent works and responds to tests and software like kleopatra as it was part of gpg4win v315 installation. I also noted that the About section doesn't include Compiled with libraries mentioned.

So my question: is this an issue with KMymoney and it's still in the works or I'm doing something wrong apart from running gpg software before launching kmymoney.

TIA


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]