Bug 443339 - Klipper interferes with LibreOffice Calc copy/paste
Summary: Klipper interferes with LibreOffice Calc copy/paste
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-05 08:09 UTC by Jonathan Marten
Modified: 2024-01-08 03:45 UTC (History)
2 users (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 Jonathan Marten 2021-10-05 08:09:44 UTC
SUMMARY

Klipper appears to prevent copy/paste of more than one cell between Calc sheets.

STEPS TO REPRODUCE
1. In LibreOffice Calc, make a selection over more than one cell.
2. Execute "Copy"
3. Switch to another sheet tab.
4. Execute "Paste".

OBSERVED RESULT

Nothing is pasted.

EXPECTED RESULT

The source cells are pasted.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

The same happens if step 2 is not executed and middle-mouse paste used at step 4.
There is no problem if the selection covers only one Calc cell.

A blank entry is inserted at the top of the Klipper items history when the sheet tab is switched at step 3, even though the "Prevent empty clipboard" option is turned on in Klipper's configuration.  Other Klipper options "Text selection only" and "Synchronise clipboard and selection" are also turned on.
Comment 1 Jonathan Marten 2021-10-05 08:10:21 UTC
See the "See also" bugs for possible reports on the LibreOffice side.

As reported in LibreOffice bug 130715, disabling Klipper eliminates the problem.
Comment 2 David Edmundson 2021-10-05 15:05:02 UTC
Can you confirm if this is X11 or wayland? I could not immediately reproduce.

I don't quite see how this can be klipper at fault without libreoffice also doing something weird - such as emptying the clipboard between changing selections.
Comment 3 Jonathan Marten 2021-10-05 15:56:47 UTC
Sorry, should have said that this is with X11.  Maybe an addition to the bug reporting template, now that Wayland is becoming more widespread?

Should have also clarified that "switch to another sheet tab" means to another tab (bottom tab bar) within the same Calc window.

LibreOffice does indeed appear to be doing something odd.  Select two cells (no need to even copy, can be a read-only sheet)) and switch to another sheet tab.  The debug messages

klipper/org.kde.klipper Klipper::checkClipData: Checking clip data
klipper/org.kde.klipper Klipper::checkClipData: Synchronize? true
klipper/org.kde.klipper Klipper::setClipboard: Setting clipboard to < "" >

are shown, and an empty item appears at the top of Klipper's history.
Comment 4 Nate Graham 2023-12-09 04:16:17 UTC
Cannot reproduce on Wayland. Can you? It really seems like LibreOffice is to blame here for monkeying with the clipboard on X11 in a way that's prevented on Wayland.
Comment 5 Bug Janitor Service 2023-12-24 03:46:12 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2024-01-08 03:45:55 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!