nwjs / nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
https://nwjs.io
MIT License
40.34k stars 3.88k forks source link

gui.Shell.openExternal(url); is not working in Ubuntu #7522

Open HarshadUpadhyay opened 4 years ago

HarshadUpadhyay commented 4 years ago

Thanks for reporting an issue! Spend 60 seconds reading this...

  1. Before reporting, try reproducing against the latest version of NWJS.
  2. The issue tracker is only for bugs and feature requests, in English only.

======== TEMPLATE BUG FORM ========

NWJS Version: All versions Operating System: Ubuntu

Expected behaviour

The browser should open with this URL.

Actual behaviour

Nothing is happening, none of my browsers is opening and my default browser is chrome I checked using this command: "sudo update-alternatives --config x-www-browser"

How to reproduce

HarshadUpadhyay commented 4 years ago

This is the error coming in the console:

ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. Running Firefox as root in a regular user's session is not supported. ($HOME is /home/harshad which is owned by harshad.) Running Firefox as root in a regular user's session is not supported. ($HOME is /home/harshad which is owned by harshad.) /usr/bin/xdg-open: 851: /usr/bin/xdg-open: iceweasel: not found /usr/bin/xdg-open: 851: /usr/bin/xdg-open: seamonkey: not found /usr/bin/xdg-open: 851: /usr/bin/xdg-open: mozilla: not found /usr/bin/xdg-open: 851: /usr/bin/xdg-open: epiphany: not found /usr/bin/xdg-open: 851: /usr/bin/xdg-open: konqueror: not found /usr/bin/xdg-open: 851: /usr/bin/xdg-open: chromium: not found /usr/bin/xdg-open: 851: /usr/bin/xdg-open: chromium-browser: not found [13274:13274:0721/224353.396287:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. /usr/bin/xdg-open: 851: /usr/bin/xdg-open: www-browser: not found /usr/bin/xdg-open: 851: /usr/bin/xdg-open: links2: not found /usr/bin/xdg-open: 851: /usr/bin/xdg-open: elinks: not found /usr/bin/xdg-open: 851: /usr/bin/xdg-open: links: not found /usr/bin/xdg-open: 851: /usr/bin/xdg-open: lynx: not found /usr/bin/xdg-open: 851: /usr/bin/xdg-open: w3m: not found xdg-open: no method available for opening 'https://www.google.com'

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.