You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to open external URL using openExternal: require('shell').openExternal('http://google.com')
The call doesn't open browser at all and outputs following error into console:
The setuid sandbox is not running as root. Common causes:
* An unprivileged process using ptrace on it, like a debugger.
* A parent process set prctl(PR_SET_NO_NEW_PRIVS, ...)
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
It does work when I run atom shell as root, that's not really usable for production though.
OpenExternal also works without any issues for mailto urls (like require('shell').openExternal('mailto:[email protected]').
My system is Arch Linux with xfce dm, xdg-open works fine when runned from a terminal. Tried this on a Ubuntu 14.04 box with a same result.
Well, when you have chrome browser installed as default browser openExternal will open the url with it, and because atom-shell's render process is created with PR_SET_NO_NEW_PRIVS, chrome browser can not start with sandbox.
Activity
rychlis commentedon Sep 2, 2014
Just to make the bugreport complete, I'm using the x64 v0.15.9 release. If you need any more information, let me know :)
kevinsawicki commentedon Sep 2, 2014
Refs atom/atom#3413
zcbenz commentedon Sep 5, 2014
Somehow atom-shell had found the sandbox installed by chrome/chromium browser and tried to use that sandbox to execute
xdg-open.zcbenz commentedon Sep 5, 2014
Well, when you have chrome browser installed as default browser
openExternalwill open the url with it, and because atom-shell's render process is created withPR_SET_NO_NEW_PRIVS, chrome browser can not start with sandbox.zcbenz commentedon Sep 5, 2014
The fix on libchromiumcontent side is https://github.com/brightray/libchromiumcontent/blob/atom/patches/zygote_host_impl_linux.patch.