hluk/CopyQ

After upgrade to version 12 start failing copy command on Linux: ScriptError: Failed to copy to clipboard!

Open

#3,253 创建于 2025年10月14日

在 GitHub 查看
 (14 评论) (0 反应) (0 负责人)C++ (7,372 star) (419 fork)batch import
X11help wanted

描述

After one of latest update copyq, start fails copy with "exit code 4".

Describe the bug I've made script based on example https://copyq.readthedocs.io/en/latest/command-examples.html#replace-all-occurrences-in-selected-text, that works fine more than year.

But recently start fails like:

Note: Exception in command "Keyboard layout change (xneur like)": ScriptError: Failed to copy to clipboard!
Note:    
Note:    --- backtrace ---
Note:    f@:1
Note:    copy2@eval code:15
Note:    %entry@eval code:24
Note:    f@:1
Note:    eval:// Copy without changing...
Note:    eval
Note:    --- end backtrace ---

To Reproduce

  1. Import example command https://copyq.readthedocs.io/en/latest/command-examples.html#replace-all-occurrences-in-selected-text
  2. In editor select any text
  3. Call command (by action or previously assigned shortcut)

Expected behavior Text copied

Screenshots

Version, OS and Environment

$ copyq version
CopyQ Clipboard Manager 12.0.1
Qt: 6.9.2
KNotifications: 6.18.0
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Fedora Linux 42 (KDE Plasma Desktop Edition)
  • Installation method: Official fedora repos rpm

贡献者指南

After upgrade to version 12 start failing copy command on Linux: ScriptError: Failed to copy to clipboard! · hluk/CopyQ#3253 | Good First Issue