Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-copy-paste prevents Node from exiting #32

Open
alessioalex opened this issue Aug 7, 2015 · 5 comments
Open

node-copy-paste prevents Node from exiting #32

alessioalex opened this issue Aug 7, 2015 · 5 comments

Comments

@alessioalex
Copy link

On Ubuntu this simplist example makes your program hang (not automatically quit):

var copyToClipboard = require('copy-paste');

copyToClipboard.copy('OOOOOOOOOOOOOOOOOOK');
@Nasawa
Copy link

Nasawa commented Aug 24, 2015

I'm not entirely sure of the situation, but upon installing NodeJS on a fresh Ubuntu and running the lines included with nodejs alessioalex.js, I was returned to the terminal prompt as if the program had exited successfully. Also, placing a message after those lines to confirm it's been reached seems to work as well.

image

Is this not what you were experiencing? If not, would you be able to provide an example situation to see if I can replicate the behavior?

@gavinengel
Copy link

I also have the problem of a hung program, so I had to add a exit command at the end. here is an example script: https://gist.github.com/gavinengel/64ba135020fbd069f1b1

@gabemarshall
Copy link

I'm trying to figure this out at the moment. Anyone have any luck? I'm thinking that xclip thinks that it has to read something from stdin so its hanging indefinitely.

@roccomuso
Copy link

I'm having the same issue.

@clearbug
Copy link

I'm having the smae issue.(Win7 64bit, NodeJs v6.9.1, npm 3.10.8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants