Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not detecting Wayland / Weston #39

Open
powellnorma opened this issue Sep 23, 2024 · 5 comments
Open

Not detecting Wayland / Weston #39

powellnorma opened this issue Sep 23, 2024 · 5 comments

Comments

@powellnorma
Copy link

powellnorma commented Sep 23, 2024

I am starting weston from X11 like this:

export WAYLAND_DISPLAY=mysocket
weston --socket=$WAYLAND_DISPLAY --backend=x11-backend.so

When I now start clipboard-sync, it doesn't seem to find the wayland session, even when I ensure WAYLAND_DISPLAY is set correctly. It logs:

INFO - Using clipboards: [X11Clipboard { display: ":0" }]

wl-copy works fine: WAYLAND_DISPLAY=mysocket wl-copy "a test"

@powellnorma
Copy link
Author

Looking at the source, it seems like clipboard-sync expects the environment variable to be wayland-X, where X is an digit:

let wl_display = format!("wayland-{}", n);

So I now am using wayland-0, but get:

WARN - wayland-0 does not support zwlr_data_control_manager_v1. If you are running gnome in wayland, that's OK because it provides an x11 clipboard, which will be used instead.

@powellnorma
Copy link
Author

Looks like Weston does not support zwlr_data_control_manager_v1 currently.. Any workarounds?
https://wayland.app/protocols/wlr-data-control-unstable-v1#compositor-support

@powellnorma
Copy link
Author

@powellnorma
Copy link
Author

powellnorma commented Sep 23, 2024

I tried cage, however it fails with

00:00:00.000 [backend/x11/backend.c:607] Failed to query DRI3 DRM FD
00:00:00.000 [../cage.c:311] Unable to create the wlroots backend

(Due to https://forums.developer.nvidia.com/t/dri3open-missing-in-the-x11-driver-for-wlroots-compositors/214164/2)

@powellnorma
Copy link
Author

I think even if zwlr_data_control_manager_v1 is not supported, it would still be nice if clipboard-sync would paste into that wayland session (but not watch for clipboard changes, since that's not possible)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant