ubuntu 18.04 - lnav <c> 'Wrote 1 rows to /dev/clipboard' - apparently does nothing

133 views
Skip to first unread message

Peter Goodall

unread,
Apr 6, 2020, 6:57:15 PM4/6/20
to lnav
Hi,

I can't copy anything from lnav to the clipboard. 
I have a lot of new errors appearing in my system logs, and would like to investigate.

I have xclip installed.

 % xclip -version
xclip version
0.12
Copyright (C) 2001-2008 Kim Saunders et al.
Distributed under the terms of the GNU GPL

 % lnav -V
lnav
0.8.5

xclip is working:

[1] % echo "hi" | xclip -selection c                                
<ctrl-shift-c>
[0] % hi

no /dev/clipboard

% sudo ls -l /dev/cli*      
zsh
: no matches found: /dev/cli*

Googling this kind of problem, all get are 'how to configure xclip for tmux' - which don't seem directly related.

Any ideas?

Cheers,
--Peter G
Message has been deleted

Peter Goodall

unread,
Apr 6, 2020, 7:23:20 PM4/6/20
to lnav
some logging around mark and clip using lnav -d

2020-04-07T09:04:03.931 I command_executor.cc:88 Executing: alt-msg Press w/W to move forward/backward through warning messages
2020-04-07T09:04:07.724 D hotkeys.cc:149 executing key sequence xb020940: :mark
2020-04-07T09:04:07.724 I command_executor.cc:88 Executing: mark
2020-04-07T09:04:07.725 D hotkeys.cc:149 executing key sequence xb020940: :eval :alt-msg ${keymap_def_next_user_mark}
2020-04-07T09:04:07.725 I command_executor.cc:88 Executing: eval :alt-msg ${keymap_def_next_user_mark}
2020-04-07T09:04:07.725 D lnav_commands.cc:3154 Evaluating: :alt-msg ${keymap_def_next_user_mark}
2020-04-07T09:04:07.725 D lnav_commands.cc:3161 Expanded command to evaluate: :alt-msg Press u/U to move forward/backward through user bookmarks
2020-04-07T09:04:07.725 I command_executor.cc:88 Executing: alt-msg Press u/U to move forward/backward through user bookmarks
2020-04-07T09:04:13.227 D hotkeys.cc:149 executing key sequence xb020940: :eval :alt-msg ${keymap_def_clear}
2020-04-07T09:04:13.227 I command_executor.cc:88 Executing: eval :alt-msg ${keymap_def_clear}
2020-04-07T09:04:13.227 D lnav_commands.cc:3154 Evaluating: :alt-msg ${keymap_def_clear}
2020-04-07T09:04:13.227 D lnav_commands.cc:3161 Expanded command to evaluate: :alt-msg Press C to clear marked messages
2020-04-07T09:04:13.227 I command_executor.cc:88 Executing: alt-msg Press C to clear marked messages
2020-04-07T09:04:13.227 D hotkeys.cc:149 executing key sequence xb020940: :write-to /dev/clipboard
2020-04-07T09:04:13.227 I command_executor.cc:88 Executing: write-to /dev/clipboard



dragon788

unread,
Apr 7, 2020, 6:32:58 PM4/7/20
to lnav
Do you know if you are running under Wayland or Xorg?

You could try using `xsel` instead of `xclip` and see if you have any better results, but if you aren't running an Xorg server and some apps are running under XWayland that might explain why you aren't able to use the clipboard contents everywhere you are expecting.

Reply all
Reply to author
Forward
0 new messages