xavi- / node-copy-paste

A command line utility that allows read/write (i.e copy/paste) access to the system clipboard.
425 stars 76 forks source link

Not working on linux #27

Closed junaidcs closed 9 years ago

junaidcs commented 9 years ago

Hi, Thanks its working on Mac properly when i push it on server (linux), it does not work, give me this error. [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' .

I've installed Flash as well on server. Is there any other dependencies for this?

Thanks. Muhammad Junaid

xavi- commented 9 years ago

Hmm, can you check and see if xclip is installed on your linux server? This module uses that command line utility to gain access to the system's clipboard.

junaidcs commented 9 years ago

I just installed with this command, but still not working sudo apt-get install xclip. Any other solution you recommend ?

xavi- commented 9 years ago

What happens when you run this command?

xclip -selection clipboard -o
junaidcs commented 9 years ago

It gives me this message Error: Can't open display: (null)

xavi- commented 9 years ago

I think that means X isn't installed.

xavi- commented 9 years ago

Right now this modules depends on xclip and X being installed to work correctly, which is unfortunate, but I think of a robust alternative. If you think of one, I'm all ears.

In the mean time, I'm going to close this issue.