x11docker icon indicating copy to clipboard operation
x11docker copied to clipboard

Clipboard not working when using --xwayland

Open CoolnsX opened this issue 1 year ago • 4 comments

Hey, thanks for this script to make my life easier.

I am having issues with clipboard not working whenever I run x11docker with --xwayland, I need it because the electron app does not play nicely without gpu even with --gpu args passed, but this break the clipboard sharing (bi-directional) functionality, so currently I am using the shared "file" workaround in which I saved clipboard contents in a file which is accessible from both container and host.

CoolnsX avatar Sep 11 '23 05:09 CoolnsX

Does clipboard sharing work e.g. with Xephyr? Is xclip installed?

mviereck avatar Apr 06 '24 18:04 mviereck

Yeah, clipboard works with xephyr, but I wanted to use xwayland, since the GPU acceleration is better there.

CoolnsX avatar Apr 06 '24 18:04 CoolnsX

Odd that it works in Xephyr, but not in Xwayland. Just tried to reproduce and found that since my recent update to Debian bookworm the weston window with Xwayland does not show Xwayland at all, however, no error appears. So I cannot check the clipboard immediately. I'll have to check and fix that first before I can check the clipboard issue.

mviereck avatar Apr 06 '24 20:04 mviereck

I use hyprland (Wayland compositor) and it has support for xwayland, that's what I use for running my custom docker image based on debian with xfce.

CoolnsX avatar Apr 06 '24 23:04 CoolnsX