CopyQ icon indicating copy to clipboard operation
CopyQ copied to clipboard

Duplicate insert in Chrome

Open guettli opened this issue 5 years ago • 10 comments

Describe the bug

In Chrome (Chromium | 92.0.4515.107 (Offizieller Build) snap (64-Bit), Ubuntu 20.04) the insert from the menu gets done twice.

This happens in the old version of copyq (3.10) and in the new (v4.1.0~focal).

A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Copy some text
  2. use shortcut to open the copy+paste menu. I use ctrl-alt-v
  3. Choose an item. Hit enter
  4. Text gets inserted twice into Chrome. Fails for textareas, URL addressbar, ....:

Example: I copy v4.1.0~focal but v4.1.0~focalv4.1.0~focal gets inserted.

Version, OS and Environment

CopyQ Clipboard Manager v4.1.0~focal Qt: 5.12.8 KNotifications: 5.68.0 Compiler: GCC Arch: x86_64-little_endian-lp64 OS: Ubuntu 20.04.2 LTS

I use CopyQ since several months and it always worked fine.

guettli avatar Jul 26 '21 08:07 guettli

I am also able to reproduce this, on 21.04, with 3.x and 4.x

Gelmo avatar Jul 28 '21 00:07 Gelmo

+1 with CopyQ v3.13.0 on Chrome: Version 92.0.4515.107 (Official Build) (64-bit) on Linux

tomoe avatar Jul 28 '21 02:07 tomoe

I have the same issue Chrome: Version 92.0.4515.107 (Official Build) (64-bit) CopyQ Clipboard Manager v4.1.0~bionic On Ubuntu

s-surineni avatar Jul 29 '21 04:07 s-surineni

I fail to reproduce this, but I'm not using Ubuntu and use Chromium 92.0.4515.107 installed from Flatpak/Flathub.

There are couple of options in CopyQ v4.1.0 changing the paste behavior and basically how Shift+Insert is send to target window (mainly wait times and intervals between key presses).

What could help is setting window_key_press_time_ms option to 0 (default is 50 on Linux).

copyq config window_key_press_time_ms 0

hluk avatar Jul 31 '21 07:07 hluk

Same issue here - setting window_key_press_time_ms did not help.

$ copyq --version
CopyQ Clipboard Manager v4.1.0~hirsute
Qt: 5.15.2
KNotifications: 5.80.0
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Ubuntu 21.04

Chrome version: Version 92.0.4515.107 (Official Build) (64-bit)

panzelva avatar Aug 02 '21 11:08 panzelva

@hluk — Is there anything that those of us experiencing this behavior can do to help track down the cause? It seems to be isolated to Chrome, and I believe it started happening relatively recently. I think I first noticed it after upgrading Chrome for the first time in a couple months.

sctice avatar Aug 05 '21 17:08 sctice

It looks like a Chrome update may have resolved this! Just an uninformed guess after a little searching through the change log, but maybe this commit?

After updating Chrome to 92.0.4515.131 and re-launching it, I'm no longer seeing the duplicate insert behavior with CopyQ v3.13.0.

sctice avatar Aug 05 '21 23:08 sctice

I can confirm that the latest Chrome update has resolved the issue for me, as well.

Gelmo avatar Aug 12 '21 17:08 Gelmo

@guettli You may want to test and close this

Gelmo avatar Aug 12 '21 17:08 Gelmo

Yes, I can confirm. Ubuntu does automatically install the new version of chromium, and after restarting it the bug is gone.

guettli@yoga15:~$ LANG=C snap info chromium
name:      chromium
summary:   Chromium web browser, open-source version of Chrome
publisher: Canonical*
store-url: https://snapcraft.io/chromium
contact:   https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bugs?field.tag=snap
license:   unset
description: |
  An open-source browser project that aims to build a safer, faster, and more stable way for all
  Internet users to experience the web.
commands:
  - chromium.chromedriver
  - chromium
snap-id:      XKEcBqPM06H1Z7zGOdG5fbICuf8NWK5R
tracking:     latest/stable
refresh-date: today at 08:48 CEST
channels:
  latest/stable:    92.0.4515.131 2021-08-04 (1691) 148MB -
  latest/candidate: 92.0.4515.131 2021-08-03 (1691) 148MB -
  latest/beta:      93.0.4577.42  2021-08-13 (1699) 149MB -
  latest/edge:      94.0.4603.0   2021-08-14 (1700) 153MB -
installed:          92.0.4515.131            (1691) 148MB -

guettli avatar Aug 16 '21 09:08 guettli