PSReadLine's Copy/Paste silently fails on KDE Wayland due to hardcoded xclip #5186
bakamake
started this conversation in
Show and tell
Replies: 1 comment
|
I think it'd be better open issue to request a dedicated option to customize the clip command. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
KDE Plasma's Wayland session deliberately uses Wayland-native clipboard protocols (
wl-clipboard/wlr-data-control) and does not transparently bridge them back to X11 tools likexclip. This is a design choice, not a bug: KDE wants Wayland sessions to use Wayland toolchains end-to-end.Meanwhile, PSReadLine's
Clipboard.cshardcodesxclipfor Linux:All of PSReadLine's system clipboard operations on Linux — the
Copy/Cut/Pastebindings shown byGet-PSReadLineKeyHandler(Ctrl+C/Ctrl+x/Ctrl+v/Shift+Insert) — go through this code path. On KDE Wayland, and on any other Wayland-only session where$DISPLAYpoints at a non-functional XWayland or isn't set at all,xclipeither exits non-zero or fails to launch.StartProcessthen sets_clipboardSupportedtofalse, and the user is silently dropped to the internal kill ring with a singleDing()— no error, no hint that Wayland is the culprit.Concrete affected setups:
wl-clipboardwithoutxclipAll reactions