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

hangs on copy to clipboard #1343

Open
dmig opened this issue Nov 22, 2024 · 2 comments
Open

hangs on copy to clipboard #1343

dmig opened this issue Nov 22, 2024 · 2 comments
Labels

Comments

@dmig
Copy link

dmig commented Nov 22, 2024

lnav version
v0.12.3
Arch Linux, Gnome on Wayland

Describe the bug
lnav hangs on copy to clipboard, ignoring further keypresses until clipboard is modified from another app

To Reproduce
Steps to reproduce the behavior:

  • open lnav with some log
  • select a line or several
  • press c -- text is copied, lnav becomes unresponsive
  • switch to another app
  • copy something to clipboard -- lnav unfreezes and reacts to all keypresses happened after copying
@dmig dmig added the bug label Nov 22, 2024
@tstack
Copy link
Owner

tstack commented Nov 23, 2024

Looks like the wayland copy command is not quite right. I think you can tweak a config setting in lnav to fix it. Try running this command:

:config /tuning/clipboard/impls/Wayland/general/write wl-copy --type text/plain

The builtin command line passed the --foreground command to wl-copy, which seemed to mess things up.

@dmig
Copy link
Author

dmig commented Nov 23, 2024

wl-copy --type text/plain doesn't hang, but also doesn't copy anything.
Strange... It works in terminal, but not when called from lnav.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants