Geany 1.38-1 in Ubuntu 22.10 seems to totally ignore the primary Wayland selection in KDE 5.25.5, as in https://github.com/geany/geany/issues/2629. Selecting text in Geany does not affect the Wayland primary selection. Middle mouse paste pastes the Wayland secondary selection, which should be pasted by paste commands like Ctrl-V, not middle mouse paste.
Geany certainly does use the secondary selection. I can copy in Geany and see that output from `wl-paste`. However, it can only be pasted into some apps. Maybe the problem is the format that Geany claims the data is in. Running `wl-paste -l` to "Instead of pasting, list the offered types." I see this after copying in Geany: ``` UTF8_STRING STRING SAVE_TARGETS ``` However, other apps also show MIME types. Maybe some apps refuse to paste if they don't find a recognized MIME type there? Text copied in Konsole: ``` text/plain text/html text/plain;charset=utf-8 ``` Copied from Klipper clipboard history: ``` text/plain text/plain;charset=utf-8 ``` Copied from Chrome 108.0.5359.71: ``` STRING UTF8_STRING text/plain text/plain;charset=utf-8 text/plain;charset=utf-8 TEXT ```
Other possibly related problems are that copied data does not appear in KDE Klipper clipboard history, and that it is lost after Geany is closed. Then I guess Klipper puts the last thing from its history back into the clipboard.