Bug 453640 - Home page Copy an amount no longer works
Summary: Home page Copy an amount no longer works
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.2
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-10 21:55 UTC by Pete
Modified: 2023-02-12 00:21 UTC (History)
1 user (show)

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 Pete 2022-05-10 21:55:56 UTC
STEPS TO REPRODUCE
1. launch KMM
2. highlight any money field on Home page
3. right click on highlight
4. the Copy option is no longer available
Comment 1 Thomas Baumgart 2022-05-11 14:49:36 UTC
I am unable to duplicate the behavior with a native application installed but see the problem using the latest stable AppImage. The latest master AppImage does not have the problem either. The stable branch is either using QWebEngine or QWebKit for the display of the homepage whereas master is using the QTextBrowser. I am using Qt 5.12.7 when building, the AppImage is based on Qt 5.15.2. Looks like my local version is using QWebEngine and the AppImage is build with QWebKit. What your version is based on? I expect the cause to be somewhere in that area. Just too many options.
Comment 2 Pete 2022-05-11 23:07:18 UTC
(In reply to Thomas Baumgart from comment #1)
> I am unable to duplicate the behavior with a native application installed
> but see the problem using the latest stable AppImage. The latest master
> AppImage does not have the problem either. The stable branch is either using
> QWebEngine or QWebKit for the display of the homepage whereas master is
> using the QTextBrowser. I am using Qt 5.12.7 when building, the AppImage is
> based on Qt 5.15.2. Looks like my local version is using QWebEngine and the
> AppImage is build with QWebKit. What your version is based on? I expect the
> cause to be somewhere in that area. Just too many options.

In synaptic, qt packages are all 5.15.3
Comment 3 Pete 2022-05-12 15:14:32 UTC
Ubuntu is 22.04 LTS.
Comment 4 Pete 2022-05-20 13:49:33 UTC
This discovery further complicates this bug:

In Reports/Investments/Investment Performance by Type, right clicking on a selected area DOES work as expected and provides the user with the option to Copy.
Comment 5 Pete 2022-07-10 22:27:37 UTC
This problem also affects Fedora 36.
Comment 6 Pete 2023-02-06 00:21:50 UTC
I just removed kmymoney and kmymoney-common packages using synaptic.

I then downloaded appimage #385.

The inability to copy still persists.

Do you have a fix?
Comment 7 Jack 2023-02-06 00:54:40 UTC
Per Thomas' comment #1 it seems like you need to find a version compiled with QWebEngine instead of QWebKit, as long as you are running stable (5.1.x) instead of master.  I am aware that is far more easily said than done.  One way would be to compile your own version.  It might also be possible to find a "working" version from a different distribution, as long as it is reasonably easy for you to install in place of the Ubuntu version.

However, as a separate possibility, what graphics system are you using?  With Xorg, if you select any text, is is put in the X cut buffer (not sure if that's the proper term) and you can paste it with a middle mouse click (it will paste where the cursor it, so a single left click at the target before pasting is a good idea.
Comment 8 Pete 2023-02-06 01:02:03 UTC
(In reply to Jack from comment #7)
> Per Thomas' comment #1 it seems like you need to find a version compiled
> with QWebEngine instead of QWebKit, as long as you are running stable
> (5.1.x) instead of master.  I am aware that is far more easily said than
> done.  One way would be to compile your own version.  It might also be
> possible to find a "working" version from a different distribution, as long
> as it is reasonably easy for you to install in place of the Ubuntu version.
> 
> However, as a separate possibility, what graphics system are you using? 
> With Xorg, if you select any text, is is put in the X cut buffer (not sure
> if that's the proper term) and you can paste it with a middle mouse click
> (it will paste where the cursor it, so a single left click at the target
> before pasting is a good idea.

Since appimages are supposed to be stand alone products, why not "just" compile a version with QWebEngine instead of QWebKit and call it #386?
Comment 9 Pete 2023-02-06 22:22:58 UTC
On my recent Core i7 CPU, this appimage #385 loads as slow as molasses.  Is this normal?  Is there a deb file?
Comment 10 Jack 2023-02-06 22:56:02 UTC
There is likely a deb file available for any distribution that uses that format for packages, but KDE does not provide any.  https://repology.org/project/kmymoney/versions lists available versions by distro, but does not say what format each uses.  Unfortunately, it appears distrowatch no longer covers kmymoney, as of last December.

The issue with creating appimages is that the KMyMoney team does not have full control over the system on which they are produced, and so do not always have full choice of alternate libraries (i.e., QWebEngine vs. QWebKit.)
Comment 11 Pete 2023-02-06 23:17:22 UTC
(In reply to Jack from comment #10)
> There is likely a deb file available for any distribution that uses that
> format for packages, but KDE does not provide any. 
> https://repology.org/project/kmymoney/versions lists available versions by
> distro, but does not say what format each uses.  Unfortunately, it appears
> distrowatch no longer covers kmymoney, as of last December.
> 
> The issue with creating appimages is that the KMyMoney team does not have
> full control over the system on which they are produced, and so do not
> always have full choice of alternate libraries (i.e., QWebEngine vs.
> QWebKit.)

A money management software from which it is no longer possible to copy/paste is severely crippled.  For some, it may no longer be usable.

Can you please find a way, moving mountains if necessary, to make this basic copy/paste functionality work.
Comment 12 Jack 2023-02-06 23:35:00 UTC
Are you running Xorg?  If so, have you tried selecting with the mouse and then pasting from the xbuffer with a middle mouse click?  That's how I mostly do it, whether or not the full copy/paste works or not.

Also, copying DOES work - depending on how the program is compiled.  The KMyMoney team does not control how each distribution compiles the program.  Have you asked your distribution if they will consider compiling KMyMoney with QWebengine instead of QWebKit?  I'm sure the developers will look into whether the Appimage version can be compiles with QWebEngine, but, as I said, that may not be possible.
Comment 13 Pete 2023-02-06 23:54:03 UTC
(In reply to Jack from comment #12)
> Are you running Xorg?  If so, have you tried selecting with the mouse and
> then pasting from the xbuffer with a middle mouse click?  That's how I
> mostly do it, whether or not the full copy/paste works or not.
> 
> Also, copying DOES work - depending on how the program is compiled.  The
> KMyMoney team does not control how each distribution compiles the program. 
> Have you asked your distribution if they will consider compiling KMyMoney
> with QWebengine instead of QWebKit?  I'm sure the developers will look into
> whether the Appimage version can be compiles with QWebEngine, but, as I
> said, that may not be possible.

My distribution (Ubuntu 22.04) uses Wayland.  Xorg, through great efforts, has been deprecated, as far as I know.

How do you explain comment 4?  Why does the copy/paste work there?  If it can work there, why not everywhere?
Comment 14 Ian Neal 2023-02-07 00:15:25 UTC
(In reply to Pete from comment #5)
> This problem also affects Fedora 36.

Out of interest what window manager are you using? KDE, Gnome or something else?
I see the same issue using Gnome on Fedora 36.
Comment 15 Pete 2023-02-07 00:22:40 UTC
(In reply to Ian Neal from comment #14)
> (In reply to Pete from comment #5)
> > This problem also affects Fedora 36.
> 
> Out of interest what window manager are you using? KDE, Gnome or something
> else?
> I see the same issue using Gnome on Fedora 36.

Ubuntu 22.04 default version of Gnome, which is slightly different than Gnome from Fedora (gnome.org)
Comment 16 Jack 2023-02-07 00:36:17 UTC
I don't use Wayland, so I don't know if it has any equivalent of Xorg's xbuffer.  I would try to look into that, at least as a temporary workaround.  I would also ask the Ubuntu devs if they would consider building KMyMoney with QWebEngine instead of QWegKit.  They may not agree, but it isn't going to change if nobody asks.

As for why KMyMoney does not behave identically in all Views, different pages are generated using different underlying libraries.  The layout approach for each view was chosen by the developer when that view was originally created (or during a major re-write.)  Given that master seems better than 5.1 right now (at least for the Home Page) indicates we are moving in the right direction, even if not fast enough for everyone.  Unfortunately, backporting the changes in the Home Page from master to 5.1 is just not feasible.  There are also not enough developer hours to address everything every user wants.  Their time is being spent on what they think is most important to the overall progress of the program.
Comment 17 Pete 2023-02-07 02:07:50 UTC
>ask the Ubuntu devs if they would consider building KMyMoney with QWebEngine instead of QWegKit

Would it not be easier to enhance QWebkit?
Comment 18 Pete 2023-02-11 23:59:23 UTC
Which Linux distro is configured by default to properly run KMyMoney with QWebEngine?

I am thinking of running these in a virtual machine.
Comment 19 Jack 2023-02-12 00:11:05 UTC
it is not how it is run, it is how it is compiled, and I do not know of anywhere such information is collected.  I suspect you can download a distribution's package, unpack it, and run ldd on the kmymoney executable. and grep -i for qweb or qtq5web.  Otherwise, you would have to ask on a distro forum or mailing list.
It is also not that hard to compile from source yourself, and then you have full control over all build options.
Comment 20 Pete 2023-02-12 00:13:34 UTC
(In reply to Jack from comment #19)
> it is not how it is run, it is how it is compiled, and I do not know of
> anywhere such information is collected.  I suspect you can download a
> distribution's package, unpack it, and run ldd on the kmymoney executable.
> and grep -i for qweb or qtq5web.  Otherwise, you would have to ask on a
> distro forum or mailing list.
> It is also not that hard to compile from source yourself, and then you have
> full control over all build options.

>It is also not that hard to compile from source yourself

Where can I find complete instructions on how to do that?
Comment 21 Jack 2023-02-12 00:21:41 UTC
You can start at https://invent.kde.org/office/kmymoney/-/wikis/home.  It is not very difficult, but if you are not used to compiling from source, it can be daunting just to get basic development environment set up, as you need development versions of many packages since the regular packages exclude many files needed for compiling.
If nothing else, it's a great way to learn more about software development.  Note that if you do have questions or get stuck, feel free to ask for help - but not in this bug.  See https://kmymoney.org/support.html for the various support options available.