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

window does not open #11

Open
jahlomp opened this issue Jan 7, 2015 · 4 comments
Open

window does not open #11

jahlomp opened this issue Jan 7, 2015 · 4 comments

Comments

@jahlomp
Copy link

jahlomp commented Jan 7, 2015

When I run the following code with node-thrust, the window does not open.
I'm using MS Windows

require('node-thrust')(function(err, api) { api.window({ root_url: 'https://breach.cc' }).show(); });

this is what i get on the command line

[2015-01-07T11:15:53.779Z] SPAWING c:\Users\ACARE\Desktop\lily\node_modules\node-thrust\vendor\thrust\thrust_shell

@alspore
Copy link

alspore commented Jan 21, 2015

I'm getting the same output in Debian along with this.

events.js:72
    throw er; // Unhandled 'error' event

Error: write EPIPE
    at errnoException (net.js:904:11)
    at Object.afterWrite (net.js:720:19)

@empirefx
Copy link

Got same error in debian wheezy(linux 3.2.0-4-amd64, node v0.10.35, npm 2.2.0, node-thrust 0.7.6-rc.1).

@zodern
Copy link

zodern commented Jan 26, 2015

I am getting the same error in OSX 10.7.5. node 0.10.32 and node-thrust 0.7.6-rc.1.

@xzure
Copy link

xzure commented Jun 24, 2017

Albeit an issue over two and a half years old, this is still an issue.

The following will resolve the issue for all three of the supported platforms.

let thrust = require('node-thrust')((err, api) => {
    let w = api.window({ root_url: '...' });
    w.show()
}, {
  let binariesPath = () => {
    switch ( process.platform ) {
      case 'darwin' :
        return './node_modules/node-thrust/vendor/thrust/ThrustShell.app/Contents/MacOS/ThrustShell'
        break;
      case 'win32' :
        return '\\node_modules\\node-thrust\\vendor\\thrust\\thrust_shell.exe'
        break;
      case 'linux' :
        return './node_modules/node-thrust/vendor/thrust/thrust_shell'
        break;
    }
  }()

  exec_path: binariesPath
});

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

5 participants