CopyQ icon indicating copy to clipboard operation
CopyQ copied to clipboard

Copyq pasting multiple times (both with mouse double-click and keyboard "Enter")

Open venkatcc opened this issue 1 year ago • 11 comments

Before creating a new issue, see list of known issues.

I'm seeing the clipboard item being pasted multiple times when selected from the copyq clipboard and pasted - using either the keyboard "Enter" or by double-clicking the entry with the mouse button.

To Reproduce

  1. Use the global keyboard shortcut to open the main copyq window.
  2. Select the entry to be copied using the keyboard down/up arrows.
  3. Double-click the left mouse button or press "Enter" to paste.
  4. Notice multiple copies of the item being pasted.

Expected behavior Only a single copy should be pasted. Sometimes, only the first entry in the clipboard list pastes a single copy as expected. All other entries multiple copies are pasted.

Screenshots Attached a video showing the behavior.

Version, OS and Environment (Get details from copyq version command if possible.)

  • Application Version copyq-6.2.0-1.fc35
  • OS [e.g. Windows] Linux (Fedora 35)
  • Desktop environment, window manager (if applicable) KDE with X11 Plasma

https://user-images.githubusercontent.com/886810/184478932-3fffbbbd-92f9-4e7b-9844-cc9a5d46472a.mp4

venkatcc avatar Aug 13 '22 10:08 venkatcc

Same here (kubuntu) but not easily repeatable, but happens multiple times a day.

CopyQ Clipboard Manager 6.2.0 Qt: 5.15.3 KNotifications: 5.92.0 Compiler: GCC Arch: x86_64-little_endian-lp64 OS: Ubuntu 22.04.1 LTS

richtrefz avatar Aug 17 '22 04:08 richtrefz

I'm having this problem too, happens all the time. I'm using Ubuntu 20.04 and the app is on version 6.2.0

brGuirra avatar Aug 18 '22 11:08 brGuirra

Same here, running QTile WM under up-to-date Arch Linux with app v. 6.2.0. Doesn't happen every time but happens often.

BTrey avatar Aug 19 '22 13:08 BTrey

I'm having this issue, but only with the Discord desktop version.

CopyQ Clipboard Manager 6.2.0
Qt: 5.15.2
KNotifications: 5.78.0
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Ubuntu 22.04.1 LTS

magpie514 avatar Aug 27 '22 03:08 magpie514

To paste the content, CopyQ sends Shift+Insert key press event and after a short interval key release event. It looks like CopyQ (and other apps?) get stuck for a second just before the release event is sent causing the paste action to be triggered multiple times (while the simulated Shift+Insert is held). Perhaps there is some problem accessing the clipboard.

Is there anything in the logs after the pasting? You can open logs from the main window with F12 key, or list them from the command line with copyq logs.

hluk avatar Sep 04 '22 05:09 hluk

I tried to reproduce it with discord to check the logs, but seems I cannot reproduce anymore. It has been updated since I posted, though, maybe they fixed whatever it was on their side. EDIT: Nevermind, it happens, but only whenever it pleases. There are no logs or anything unusual.

magpie514 avatar Sep 05 '22 15:09 magpie514

The behavior has stopped for me. Not sure exactly when, as I was on a weeks vacation out of town and away from my computers all last week. It was happening on two different computers, and stopped on both.

BTrey avatar Sep 07 '22 23:09 BTrey

Still seeing the behavior (periodically) but there does not seem to be any log entries.

richtrefz avatar Sep 08 '22 03:09 richtrefz

Does anything change if you disable "Focus last window" in History tab in Preferences dialog?

hluk avatar Sep 11 '22 04:09 hluk

@hluk The issue still happens after disabling "Focus last window".

venkatcc avatar Sep 12 '22 04:09 venkatcc

Oh great someone made an issue about this

MrPancakes39 avatar Sep 18 '22 21:09 MrPancakes39

Seems to happen more when system is loaded down. I dropped back to v5, still happens but seems to happen less.

richtrefz avatar Oct 06 '22 15:10 richtrefz

This is probably duplicate of #1729. Can anyone test the new flatpak mentioned in this comment?

hluk avatar Oct 07 '22 06:10 hluk