crouton: Clipboard not working (since xsel?)

name: xenial
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/xenial...
crouton: version 1-20171122220410~master:99877eaf
release: xenial
architecture: amd64
xmethod: xiwi
targets: xiwi,touch
host: version 9901.77.0 (Official Build) stable-channel eve 
kernel: Linux localhost 4.4.79-11654-g7e0f59a105a1 #1 SMP PREEMPT Mon Nov 13 16:37:19 PST 2017 x86_64 x86_64 x86_64 GNU/Linux
freon: yes

Please describe your issue:

After installing crouton today on a new Pixelbook, trying to Paste into a xiwi window app (in my case WebStorm) fails, throwing the following error:

java.lang.NullPointerException: Failed to retrieve atom name.

See more of the full stacktrace in the attached screenshot

crouton-paste-exception

If known, describe the steps to reproduce the issue:

Attempting to paste anything from the clipboard appears to recreate the errror.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 25

Most upvoted comments

I pretty much just followed what trystant posted above.

$ mkdir src $ cd src $ git clone git@github.com:kfish/xsel.git $ cd xsel $ aclocal $ autoconf $ automake --add-missing $ ./configure $ make $ sudo make install

I also had to install automake in order to build it.

$ sudo apt-get install automake

I bought a new Chromebook and moved away from Crouton to Crostini… Crostini works beautifully out of the box for this at least and is generally seems pretty stable for the relatively vanilla app development I do. So, much as I am grateful to Crouton for enabling me to do development on a low-end chromebook, I ended up moving away from it to solve this problem. Generally, I am very happy with Crostini. YMMV.

@DavidFrahm Would you mind posting more detailed instructions on what you did with xclip from a user perspective… When startxiwi starts up, I see comments that CroutonClip is running…

  1. I don’t have any idea if it is using xsel or xclip. How do I find out and how can I make it switch to what I want - is there some config file I need to fix.
  2. I just followed @gcaliber’s instructions to install xsel. The installation itself seemed to work but I did not touch anything else & it did not magically fix the probably of copy/paste not working.

Can you please provide detailed instructions on what you did.(sounds like you forced CroutonClip to switch to xclip from xsel)… I am just trying to use my Chromebook and Crouton to write code… I’m not knowledgedable on either Crouton code base nor Linux for that matter. Thanks.