Better Wayland support for copying
Opened this issue · 2 comments
Defect
Make sure that these boxes are checked before submitting your issue -- thank you!
- Included the relevant configuration snippet
- Included the relevant process-compose log (log location:
process-compose info
) - Included a [Minimal, Complete, and Verifiable example] (https://stackoverflow.com/help/mcve)
Version of process-compose
:
❯ /nix/store/bm18s7mz0wgps5wrqlfmkc84paqyim3z-process-compose-0.69.0/bin/process-compose version
Process Compose
Version: v0.69.0
Commit: e38b113
Date (UTC): 2023-10-02T21:32:02Z
License: Apache-2.0
Written by Eugene Berger
OS environment:
NixOS 23.11, using process-compose-flake
Steps or code to reproduce the issue:
Start any process-compose instance, configuration doesn't seem to matter, but for sake of completeness here's an example:
processes:
test:
command: "echo hi;sleep 30"
namespace: default
Enter select mode, select some text, and press <Return>
Expected result:
The text is copied, and no errors or warnings are shown.
Actual result:
The text is copied, and the following message shows up at the position where I copied from:
XGB: conn.go:47: Could not get authority info: open /home/manveru/.Xauthority: no such file or directory
XGB: conn.go:48: Trying connection without authority info...
Looks like this:
Hi @manveru,
Yes, I am aware of this issue.
There is no good clipboard library, that supports Wayland, that I was able to find.
In my case (on Wayland, KDE Plasma v5.27.10) the behavior is different - the clipboard remains empty, with no errors.
Right now I can offer to disable this functionality entirely (to avoid confusion) if there is a WAYLAND_DISPLAY
env variable.
I will keep this open until a proper solution is found.