sindresorhus / clipboardy

Access the system clipboard (copy/paste)
MIT License
1.76k stars 81 forks source link

Not working in raspberry pi3 #57

Open mvtcode opened 5 years ago

mvtcode commented 5 years ago

When I using this module in raspberry pi3, has exception:

Error: Both xsel and fallback failed at makeError (/home/pi/test-rfid/node_modules/clipboardy/lib/linux.js:16:11) at xselWithFallbackSync (/home/pi/test-rfid/node_modules/clipboardy/lib/linux.js:43:10) at Object.copySync (/home/pi/test-rfid/node_modules/clipboardy/lib/linux.js:53:3) at Object.exports.writeSync.text [as writeSync] (/home/pi/test-rfid/node_modules/clipboardy/index.js:39:14) at Timeout._onTimeout (/home/pi/test-rfid/index.js:44:13) at ontimeout (timers.js:436:11) at tryOnTimeout (timers.js:300:5) at listOnTimeout (timers.js:263:5) at Timer.processTimers (timers.js:223:10)

sinedied commented 4 years ago

Same on ubuntu

tahsinature commented 4 years ago

please fix this problem my machine: #109-Ubuntu SMP Fri Nov 8 09:30:18 UTC 2019

download

mifi commented 4 years ago

what happens if you apt-get install xsel?

sinedied commented 4 years ago

@mifi tried to do that on Travis CI ubuntu image before running my tests, but it did not help.