-
Notifications
You must be signed in to change notification settings - Fork 52
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
Clipboard does not work on Wayland / Sway #210
Comments
Hello, |
Hello, |
Sorry, I'll check this today |
@Mikescops Sorry for not responding in a while. When I tested this in february I was running version 1.15.0. |
@zupd awesome thanks! |
This issue is still present on current version. |
I can confirm this @Mikescops . It seems that when I tested this first, it was on Ubuntu 23.04, and when I tested it the second time I was on Debian 12 which also uses wayland. And I assumed it worked in the latest version now, since it worked on Debian 12, but when I now tried it on my Ubuntu again it won't copy to my clipboard. This is on the latest version of dcli.
It almost seems like dcli resets the clipboard and doesnt copy anything into it |
I will test a theory in the morning but it seems that the clipboard package being used will do an ANSI OSC52 sequence to copy if it detects it is being run from within ssh, which should work fine with sway. If anyone desires to test this, my working theory is that if you are running ssh inside of sway this would work fine. I'm not at my sway desktop currently but will examine further. |
Okay after further examination here are some notes. Your package uses napi-rs/clipboard which, under normal circumstances, uses arboard clipboard, which itself has a flag that can be used during compilation of As they note
EDIT: I am wrong, further examination shows napi-rs/clipboard compiles arboard with |
Okay quick update. This problem goes all the way down to arboard. Arboard can successfully retrieve clipboard data in sway but cannot copy to the clipboard even with the
|
This looks just like my test with dashlane when I had something in the clipboard, then ran dashlane and then clipboard was empty |
Hey guys, thanks for your nice investigation. As arboard author mentioned I think it will be hard to support every environments with the clipboard functionality, do you think it's acceptable to output the password directly so it can be piped into wl-copy? If so we can just suggest such command in our documentation. |
It already supports that, right? if you use |
@zupd definitely a bug, I'll take a look thanks |
Describe the bug
When using Wayland / Sway passwords wont get copied to the clipboard.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Password should get copied to clipboard
Screenshots
Environment (please complete the following information):
Additional context
The reason why this happens is because wayland dont use xsel / xcopy to copy to clipboard. it uses wl-copy instead. And there is currently no support for this in the clipboardy package that dashlane CLI uses.
The text was updated successfully, but these errors were encountered: