hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.24k stars 430 forks source link

Handling of primary selections depends on "automatic commands" option #2651

Closed weiss closed 2 months ago

weiss commented 3 months ago

Describe the bug For primary selections to be stored in the history, it seems the Run automatic commands on selection (run_selection) option must be enabled in addition to the Store text selected using mouse (check_selection) option.

To Reproduce

copyq config check_selection true
copyq config run_selection false

Then select a few items with the mouse, and see how those weren't added to the history:

copyq read 0 1

Expected behavior I'd expect copyq read 0 1 to list items selected with the mouse regardless of the copyq config run_selection value.

Version, OS and Environment CopyQ Clipboard Manager 6.4.0 Qt: 5.15.8 KNotifications: 5.101.0 Compiler: GCC Arch: x86_64-little_endian-lp64 OS: Debian GNU/Linux 12 (bookworm)

I was able to reproduce the behavior both on Wayland and X11.

hanschen commented 3 months ago

Nice find, this explains why primary selection wasn't working for me. Can confirm on:

Version, OS and Environment CopyQ Clipboard Manager 8.0.0 Qt: 5.15.12 KNotifications: 5.115.0 Compiler: GCC Arch: x86_64-little_endian-lp64 OS: Arch Linux

hluk commented 2 months ago

Fixed in #2681 (it will be available in the next release). Thanks for the report!