janlelis/clipboard

not working on Ubuntu 10.04

wynst opened this issue · 3 comments

I made sure got latest xclip & clipboard installed.

I think the problem is in lib/clipboard.rb

unless error.read  =~ /\^xclip version/

I tried the following in irb:

>> puts `xclip -version`.include?('xclip version') #=> nil
xclip version 0.12
Copyright (C) 2001-2008 Kim Saunders et al.
Distributed under the terms of the GNU GPL
false
>> puts `xclip -version` #=> nil
xclip version 0.12
Copyright (C) 2001-2008 Kim Saunders et al.
Distributed under the terms of the GNU GPL

Maybe because xclip doesn't write on standard IO?
Pardon for my so-so IO foo.

Hi wynst,
this is strange °_°. My main development machine is an ubuntu and it works fine.

The xclip -version check in the code checks for the stderr stream, so it should work fine.

What are your error symptoms? Does it raise an exception? Does copying work?

I start noticing it when using irb-tools,
Couldn't load an irb library: clipboard -
Could not find required prgram xclip
I tried updating xclip from http://packages.debian.org/squeeze/amd64/xclip/download
but still when I tried to ran
xclip -version
it still got empty string as output.
I thought it was something to do with Parcellite but doesnt seem to be the problem.

I dont know, Might be something to do with my .bashrc. Will check later

Closed. Please reopen if you still have troubles.