Bug 140652 - Copying and pasting a text from clipboard pastes it twice in LibreOffice Writer in KDE (Brazilian bank security app interfering)
Summary: Copying and pasting a text from clipboard pastes it twice in LibreOffice Writ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 141567 (view as bug list)
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2021-02-24 21:26 UTC by Toni_Rocha
Modified: 2024-01-29 23:27 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toni_Rocha 2021-02-24 21:26:42 UTC
Description:
In KDE Neon, when I copy a text and paste it in LibreOffice, the text is pasted twice.

Steps to Reproduce:
1. Copy a text from anywhere, and paste it to LibreOffice Writer.
2. The text is pasted twice.

Actual Results:
The text is pasted duplicated.

Expected Results:
The text should be pasted one time.


Reproducible: Always


User Profile Reset: No



Additional Info:
This problem occurs in KDE Neon, not in Windows and Ubuntu.
Comment 1 Olivier Hallot 2021-08-02 21:55:08 UTC
Confirmed in Kubuntu 21.04, LO 7.2

Seems that the Ctrl key is acting twice. 

Ctrl+Shit+S issues 2 "Save As" commands.
Ctrl+O issues 2 "Open file" commands.
Comment 2 Olivier Hallot 2021-08-02 22:04:23 UTC
*** Bug 141567 has been marked as a duplicate of this bug. ***
Comment 3 Toni_Rocha 2021-08-03 00:30:33 UTC
I think the problem is (on my case) because I have installed the security app from Banco do Brasil (Brasilian Bank) to access it in browser. When I uninstalled it the problem has gone!
Comment 4 Olivier Hallot 2021-09-04 15:44:16 UTC

*** This bug has been marked as a duplicate of bug 138085 ***
Comment 5 Buovjaga 2021-09-04 15:45:52 UTC
(In reply to Toni_Rocha from comment #0)
> This problem occurs in KDE Neon, not in Windows and Ubuntu.

Then this is not a dupe of bug 138085
Comment 6 Buovjaga 2021-09-04 15:54:18 UTC
Btw. not reproduced here - I don't have KDE's clipboard manager active. Do you?

You can deactivate it by right-clicking your system tray, selecting System Tray settings, clicking Icons tab, scrolling to system services and changing the setting for Clipboard (I'm using Finnish KDE desktop, so I hope the English strings are right).
Comment 7 Rafael Lima 2021-09-04 16:43:03 UTC
(In reply to Buovjaga from comment #6)
> Btw. not reproduced here - I don't have KDE's clipboard manager active. Do
> you?

I am affected by this bug as well. I am running Kubuntu 21.04 (not KDE Neon).

However, this is a very weird bug, because it is caused by some interaction with another package that some people install on Linux to be able to access their banking accounts: the "warsaw" package.

See, I started having this issue right after I installed "warsaw" to be able to access my bank accounts (this is a very common requirement among Brazilian banks). But it took me a long time to figure out the problem... I saw someone saying in a forum or Reddit post (I can't recall exactly where) that this problem was being caused by the warsaw package.

So as soon as I uninstalled the package and restarted the PC, everything was back to normal. Copying and pasting was restored. However, now I can no longer access my bank accounts on my PC.

Another weird aspect of this bug: it only happens if the menubar is visible (even with warsaw installed). If you switch to the Tabbed interface and hide de menubar, the bug vanishes.

Moreover, only LibreOffice is affected by this package. All other software work as expected. Couldn't it be something related to the Kf5 backend?
Comment 8 Buovjaga 2021-09-04 18:09:42 UTC
Olivier confirmed removing warsaw fixed the issue. However, he only saw the problem when using the distro package of LibreOffice. In his own builds the problem was not seen.
Comment 9 Rafael Lima 2022-08-06 14:59:46 UTC
This problem still persists in LO 7.5 alpha.

Although it can be said that the "warsaw" package is to blame for this bug, I find it weird that only LibreOffice is affected by installing this package. I believe there's something different that LO does concerning the clipboard that results in double pasting.

In comment #7 I suggested removing the "warsaw" package altogether, but this may not be very practical for some users who really need to use internet banking and must have this package installed.

So I'd like to share what I've been doing to use LibreOffice alongside warsaw in Kubuntu. Basically, I installed the package and stopped the service via systemctl:

systemctl stop warsaw.service

Then, when I need to use internet banking, I start the service:

systemctl start warsaw.service

And after I'm finished, I stop the service once again to use LibreOffice.
Comment 10 Rafael Lima 2022-08-06 15:11:20 UTC
If anyone ever tries to fix this, the warsaw package is downloaded via:

https://diagnostico.gasantifraud.com/

Just choose the option "CAIXA".
Comment 11 Rafael Lima 2024-01-29 23:27:48 UTC
Just an update... I'm still getting the "double-paste" behavior using the Basic IDE in LO 7.6.

However, the issue is gone using the Basic IDE in 24.8.