- Regardless of whether Wayland or X11 is used, it exclusively calls the X11 clipboard interface, and often fails to do so properly (e.g., sometimes requiring 3-4 repeated Ctrl+C presses to copy content to the system clipboard. However, after the first Ctrl+C press, content can be freely copied/pasted within QQ itself while completely ignoring the system clipboard's existing content.)
- When copying static images,
it only adds a(Update: This was a misunderstanding - CopyQ failed to detecttext/htmlentryimage/*data from QQ for unknown reasons, only showingtext/html. The actual issue stems from Feishu's side, which only supportstext/uri-listformat. Maybe turn to alternative clipboard manager?). This results in only highly friendly applications like Telegram being able to paste images copied from QQ, while others (e.g., Feishu) completely fail to paste QQ-sourced images. - Sometimes image copies produce invalid file paths (i.e., links pointing to empty files). Simultaneously, attempting to view the original image within QQ will show "resource loading failed" errors.
This snippet tries to fix Problem 2.
- Install
htmlq(for HTML parsing) andcopyq(a clipboard manager supporting custom scripts); - Check https://github.com/hluk/copyq-commands/ for how to install the script into Copyq.