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

can't paste my key #186

Closed
jeremyd opened this issue Feb 2, 2023 · 9 comments
Closed

can't paste my key #186

jeremyd opened this issue Feb 2, 2023 · 9 comments

Comments

@jeremyd
Copy link
Contributor

jeremyd commented Feb 2, 2023

I get the error:

ERROR Cannot initialize smithay clipboard without a display handle!
ERROR Paste error: The clipboard contents were not available in the requested format or the clipboard is empty.

My clipboard is not empty...
On wayland Ubuntu 22.10

@mikedilger
Copy link
Owner

We all get the "smithay clipboard" error message and it doesn't affect our ability to paste.

Try CTRL-V instead of right-click or middle-click.

@jeremyd
Copy link
Contributor Author

jeremyd commented Feb 2, 2023

We all get the "smithay clipboard" error message and it doesn't affect our ability to paste.

Try CTRL-V instead of right-click or middle-click.

I did try this, all the different ways to paste.. And I tried one more time just now to be sure. None of them actually paste, and I click import too just in case the ui wasn't showing it.. no luck (middle mouse, CTRL-V, CTRL-SHIFT-V)

@jeremyd
Copy link
Contributor Author

jeremyd commented Feb 2, 2023

We all get the "smithay clipboard" error message and it doesn't affect our ability to paste.

Try CTRL-V instead of right-click or middle-click.

OHHH, hm, yes I did have some copy/paste shenanigans.. I was using sway. I logged out and logged in with gnome and then things worked. Thanks! Closing issue.

@jeremyd jeremyd closed this as completed Feb 2, 2023
@mikedilger
Copy link
Owner

mikedilger commented Feb 2, 2023

Perhaps Sway captures and interprets CTRL-V.

@jeremyd
Copy link
Contributor Author

jeremyd commented Feb 2, 2023

Perhaps Sway captures and interprets CTRL-V.

yes, it could also be user error.. i wasn't able to bisect before i logged out anyway due to other issues haha. i will try again next setup.

@lilydjwg
Copy link

I get this too and type the whole string instead (using ydotool). Wlroots-based Wayland compositor doesn't allow X clipboard access when no X window is focused. GNOME does allow this. The right way is to use Wayland native clipboard.

@mikedilger
Copy link
Owner

This is an upstream issue. Gossip relies on eframe (from egui) to handle all this stuff. If eframe is wrongly using an X clipboard on a pure Wayland desktop, that's probably an open issue over there somewhere. But so is this "ERROR Cannot initialize smithay clipboard without a display handle!" probably an open issue over there.

@jeremyd
Copy link
Contributor Author

jeremyd commented Feb 27, 2023

I went hunting for additional info, it appears that smithay clipboard is supposed to work with wayland although i don't think it's had much testing.. The error we're getting is indicating it's not able to create the clipboard.

1Password/arboard#52

emilk/egui#1613

emilk/egui@b8a5924

jeremyd pushed a commit to jeremyd/gossip that referenced this issue Feb 27, 2023
@jeremyd
Copy link
Contributor Author

jeremyd commented Feb 27, 2023

@mikedilger I fixed the clipboard for wayland just by adding explicit dep for egui-winit. I tried this because it seemed like the library just wasn't getting the default set of 'features'. This is cool! Maybe it will fix other clipboard related stuff for all the platforms (tested in linux/wayland/sway).

mikedilger added a commit that referenced this issue Feb 28, 2023
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