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

Pressing Enter in GUI does not paste, it only set entry in clipboard #40

Open
adambir opened this issue Nov 29, 2024 · 5 comments
Open

Comments

@adambir
Copy link

adambir commented Nov 29, 2024

Hello,

In the reame : https://github.com/SUPERCILEX/clipboard-history/blob/master/egui/README.md, is written

Press Enter to paste.

I'm using a global shortcut, that launch the GUI as described in the readme.
When selecting an entry and pressing enter, nothing is paste at the cursor. Instead I have to press Ctrl-V (or right click -> Paste).
Is the readme wrong, is it a bug, or am I using the application wrong ?

Version : 0.8.1
OS : Ubuntu 24.04 LTS using Wayland

Thank you for reading this.

@SUPERCILEX
Copy link
Owner

Ah it probably doesn't work on Wayland. I actually just got a laptop with Wayland on it last month, so I'm actively working on getting a native Wayland watcher: #10

Though are you using gnome? Cuz you're probably hosed then as it doesn't support the right interface: YaLTeR/wl-clipboard-rs#8 (comment)

To see if the Wayland watcher I'm working on will be supported for you, you can try installing and running this cargo package with the example from the README: https://github.com/SUPERCILEX/clipboard-history/tree/master/wayland-interface-check

Finally, we can try tweaking this value to see if maybe it's just a timing issue:

tv_nsec: Duration::from_millis(20).as_nanos().try_into().unwrap(),
But let me know if Wayland will be supported for you first.

@adambir
Copy link
Author

adambir commented Dec 2, 2024

Though are you using gnome?

I am using gnome indeed.

But let me know if Wayland will be supported for you first.

$ wayland-interface-check zwlr_data_control_manager_v1
$ echo $?
1

Not available it seems.

@SUPERCILEX
Copy link
Owner

L

Well ok let's try tweaking the timeout and if that doesn't work then unfortunately it's probably just not supported. Steps:

  1. systemctl --user stop ringboard-x11
  2. Clone this repo
  3. Edit the timeout to be like 1000ms
  4. cargo install --path x11 from the root of the project
  5. ringboard-x11
  6. Try pasting something and waiting for a second to see if stuff gets pasted. If nothing happens, check that Shift+Insert works to paste manually.

@adambir
Copy link
Author

adambir commented Dec 10, 2024

Hey,

I followed the instructions.
Nothing gets pasted with Enter from clipboard history. Shift+Insert does paste manually.

Edit :
Actually, after systemctl --user stop ringboard-x11, my shortcut still opens up ringboard, so I'm not sure what is expected from me at step 5 and 6

@SUPERCILEX
Copy link
Owner

SUPERCILEX commented Dec 10, 2024

Bummer, I think it's probably just not going to work. Though could you run $ RUST_LOG=trace ringboard-x11 and share the logs after trying to paste? Maybe something weird is going on.

Edit to reply to your edit.
The client applications are specifically designed to run without needing to connect to any server (they just need the database files), so this is normal. If pasting doesn't display an error in the UI when no ringboard-x11 is running, then yeah something is wrong.

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

2 participants