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

Linux, Can 't launch app. Multiple open tab (Linux headless) #6185

Closed
Shanedjafaraly opened this issue Oct 2, 2017 · 6 comments
Closed

Linux, Can 't launch app. Multiple open tab (Linux headless) #6185

Shanedjafaraly opened this issue Oct 2, 2017 · 6 comments
Assignees

Comments

@Shanedjafaraly
Copy link

NWJS Version :

root@ns3051770:/home/shane/nws# npm install -g nw
/usr/bin/nw -> /usr/lib/node_modules/nw/bin/nw

> **nw@0.25.4** postinstall /usr/lib/node_modules/nw
> node scripts/install.js
Operating System : **Linux**

Expected behavior

I would like to launch my appli (i have an .html with .js include (only a console.log for start).

Actual behavior

root@ns3051770:/home/shane/nws# ./nws --nwapp chromedriver --disable-gpu **--headless** --no-sandbox --disable-infobars --allow-insecure-localhost --dump-dom -disable-multi-display-layout pfhtml/index.html
[1002/131046.897645:ERROR:headless_shell.cc(505)] **Open multiple tabs is only supported when remote debugging is enabled.**

or :

root@ns3051770:/home/shane/nws# ./nws --disable-gpu --headless --no-sandbox  -disable-multi-display-layout  pfhtml/
[1002/131550.765152:ERROR:headless_shell.cc(132)] Navigation to  failed

sans titre

its same with .directory file. Im sorry, im a little bit new.

Plz help me, thanks

@Shanedjafaraly
Copy link
Author

there is no --headless but --headless (i try to "bold" soz)

@Shanedjafaraly
Copy link
Author

this work fine in ubuntu. the same file. but not working in headless in linux

@Christywl
Copy link
Contributor

Try the above cmd on nwjs-sdk-v0.25.4:

lei@lei-dev:~/00_lei/nwjs/build/nwjs-sdk-v0.25.4-linux-x64$ ./nw --nwapp chromedriver --disable-gpu --headless --no-sandbox --disable-infobars --allow-insecure-localhost --dump-dom -disable-multi-display-layout ../../bugs/6185/index.html
[1009/151443.752437:ERROR:headless_shell.cc(505)] Open multiple tabs is only supported when remote debugging is enabled.

I add --remote-debugging-port=9222 in the cmd:


lei@lei-dev:~/00_lei/nwjs/build/nwjs-sdk-v0.25.4-linux-x64$ ./nw --nwapp chromedriver --disable-gpu --headless --remote-debugging-port=9222 --no-sandbox --disable-infobars --allow-insecure-localhost -disable-multi-display-layout ../../bugs/6185/index.html
[1009/152147.700385:ERROR:headless_shell.cc(132)] Navigation to  failed

@Shanedjafaraly
Copy link
Author

Shanedjafaraly commented Oct 9, 2017

same error, and i have the last version for linux 0.25.4

Open multiple tabs is only supported when remote debugging is enabled.
Navigation to failed

sans titre

Do u know what's mean Navigation to failed ? Like he can't find my app ?

@damoebius
Copy link

Same error with 0.25.4 on ubuntu

@rogerwang
Copy link
Member

The --headless switch of the NW binary is not supposed to run headless NW app. It's identical with the upstream headless feature, see https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md for the usage.

And see #769 (comment) for our headless plan.

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

No branches or pull requests

4 participants