Not able to get creds in the clipboard #3

Closed
opened 2026-01-02 07:03:54 +00:00 by Ayush2832 · 3 comments

Hey Kosh team

  • I am using the Ubuntu system (system info mentioned in the image).
  • I can create the user, but after creating it, when I try to get the user credentials then it shows copied in the clipboard, but no credentials are copied in the clipboard.
  • Can you please add a way where we enter a password and it will print creds in the CLI?
    🚀

image
image

Hey Kosh team - I am using the Ubuntu system (system info mentioned in the image). - I can create the user, but after creating it, when I try to get the user credentials then it shows copied in the clipboard, but no credentials are copied in the clipboard. - Can you please add a way where we enter a password and it will print creds in the CLI? 🚀 ![image](/attachments/f098191d-fccf-4dcc-9e37-dc50dff34d89) ![image](/attachments/73edc880-5a2a-44d0-ac13-6dd6b04bdb1c)
Owner

Hi @Ayush2832 ,

Thanks for bringing up the issue!

After investigating, it seems the clipboard functionality issue is caused by the golang-design/clipboard
library, which doesn’t currently support Wayland compositors. The maintainers have marked this as a platform-specific limitation, so it’s uncertain whether they will merge a fix. Another contributor proposed a similar solution in the past, but it hasn’t been integrated yet.

To address this, I'll be adding explicit Wayland handling within my project as a temporary workaround. Additionally, I plan to raise a PR with the golang-design/clipboard project to see if they might reconsider, though I can't guarantee it will be accepted given the platform-specific nature of the issue.

Regarding the idea of printing the password as text, I’m hesitant to expose the secret in the terminal buffer for security reasons. For now, I won’t be adding that feature, but it’s something I may revisit in the future, potentially with a more secure approach.

Thanks again for your feedback! I’ll keep you updated on any progress.

Hi @Ayush2832 , Thanks for bringing up the issue! After investigating, it seems the clipboard functionality issue is caused by the [golang-design/clipboard](https://github.com/golang-design/clipboard/) library, which doesn’t currently support Wayland compositors. The maintainers have marked this as a platform-specific limitation, so it’s uncertain whether they will merge a fix. Another contributor proposed a similar solution in the past, but it hasn’t been integrated yet. To address this, I'll be adding explicit Wayland handling within my project as a temporary workaround. Additionally, I plan to raise a PR with the [golang-design/clipboard](https://github.com/golang-design/clipboard/) project to see if they might reconsider, though I can't guarantee it will be accepted given the platform-specific nature of the issue. Regarding the idea of printing the password as text, I’m hesitant to expose the secret in the terminal buffer for security reasons. For now, I won’t be adding that feature, but it’s something I may revisit in the future, potentially with a more secure approach. Thanks again for your feedback! I’ll keep you updated on any progress.
Author

HI @kashish
The code on the branch patch/clipboard_on_wayland is working fine, and I can get the password on the clipboard. I have attached the screenshot of the result
🚀
image

HI @kashish The code on the branch `patch/clipboard_on_wayland` is working fine, and I can get the password on the clipboard. I have attached the screenshot of the result 🚀 ![image](/attachments/4841803c-696a-457e-a9a5-e341e1e3e57e)
197 KiB
kashish added reference patch/clipboard_on_wayland 2026-01-03 15:48:45 +00:00
kashish self-assigned this 2026-01-03 15:48:51 +00:00
Owner

Thank you @Ayush2832, for verifying the changes.

Thank you @Ayush2832, for verifying the changes.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
plutolab/kosh#3
No description provided.