clipboard-sync icon indicating copy to clipboard operation
clipboard-sync copied to clipboard

Just not working with two nested Wayland instances

Open lukeflo opened this issue 9 months ago • 1 comments

I run niri as my main window manager but have to use a nestes labwc window for executing some specific programms which have problems with niri.

To keep my work effective a clipboard sync is essential. Thus, I tried this great project, but unfortunately, it doesn't work.

I tried two ways: .deb package as well as building from source. When directly run the binary with ./target/release/clipboard-sync --log-level=debug --log-clipboard-contents it produces the following output:

2025-03-28 10:19:05 -  INFO - started clipboard sync manager
2025-03-28 10:19:05 - DEBUG - child process 33896 successfully initialized.
2025-03-28 10:19:05 - DEBUG - waiting 600 seconds and then killing 33896.
2025-03-28 10:19:05 -  INFO - starting clipboard sync
2025-03-28 10:19:05 - DEBUG - identifying unique clipboards...
2025-03-28 10:19:05 - DEBUG - Found clipboard: WlrClipboard { display: "wayland-0" }
2025-03-28 10:19:05 - DEBUG - Found clipboard: WlrClipboard { display: "wayland-1" }

And thats it. If I copy something with e.g. echo hello | wl-copy, I can only paste it on the same display but not the second one. Also there are no more log messages produced, even I used the log-clipboard-contents flag. It always remain with the stuff above.

Any ideas whats going on here?

lukeflo avatar Mar 28 '25 09:03 lukeflo

I found out that the problem is xwayland-satellite. As long as its daemon is running, clipboard-sync wont work. But thats very unfortunate since I need to run some external Xwayland client, because niri doesn't support it out of the box

lukeflo avatar Apr 01 '25 07:04 lukeflo