Skip to content

node-copy-paste prevents Node from exiting #32

Description

@alessioalex

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

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

copyToClipboard.copy('OOOOOOOOOOOOOOOOOOK');

Activity

  1. Nasawa commented on Aug 24, 2015

    @Nasawa

    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?

  2. gavinengel commented on Aug 26, 2015

    @gavinengel

    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

  3. gabemarshall commented on Aug 2, 2016

    @gabemarshall

    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.

  4. roccomuso commented on Feb 25, 2017

    @roccomuso

    I'm having the same issue.

  5. clearbug commented on Apr 12, 2017

    @clearbug

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions