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

Xwayland is launched when wl-clipboard is installed #3017

Open
Kacper-Kondracki opened this issue Nov 8, 2023 · 4 comments
Open

Xwayland is launched when wl-clipboard is installed #3017

Kacper-Kondracki opened this issue Nov 8, 2023 · 4 comments

Comments

@Kacper-Kondracki
Copy link

Description of the problem or steps to reproduce

Have wl-clipboard installed
have xwayland installed
run micro, it launches xwayland, when copying/cutting it also launches xwayland

Specifications

Version: 2.0.13
Commit hash: 68d88b5
Compiled on October 22, 2023
OS: Arch Linux, sway with xwayland
Terminal: Foot

Xwayland is pretty heavy service, even if it auto terminates, it consumes 141MB for few seconds

@JoeKar
Copy link
Collaborator

JoeKar commented Nov 10, 2023

So you use sway with still enabled xwayland and no pure wayland session only.
Currently I would assume, that this is something wl-clipboard respective wl-copy & wl-paste do by their own to support pasting into X windows depending on the current wayland session.

But I could be wrong.
Can you try if the same happens when you invoke wl-copy or wl-paste from your terminal (Foot)?

@Kacper-Kondracki
Copy link
Author

Nope, invoking wl-copy or wl-paste doesn't launch xwayland.
After investigating further I see that micro uses clipper for clipboard which is made by the same author. It's bug in clipper.

@zyedidia
Copy link
Owner

Clipper should just launch wl-copy/wl-paste. I don’t have a wayland environment to test in, so if you discover how the issue might be fixed please let me know.

@Kacper-Kondracki
Copy link
Author

After further investigation, I figured out that the issue happens with wl-clipboard when piping text to it
echo "Hello" | wl-copy
But wl-copy Hello doesn't launch xwayland. From clipper code I see it is using wl-copy stdin.

I'm opening issue in the wl-clipboard repo

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

3 participants