sindresorhus/opn

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Incognito Not Working #41

brianantonelli posted onGitHub

Following your example for spawning an incognito session in Chrome doesn't appear to work anymore.

opn('http://sindresorhus.com', {app: ['google chrome', '--incognito']});

The above command, from your readme, opens the window in Chrome, but not in incognito mode.

OSX: 10.12.2 Chrome: 56.0.2924.87


Still seeing this issue...

FWIW open -n -a "Google Chrome" --args --incognito "$url" is working for me on Mac OS X 11.0.1, even if Google Chrome is already open.

posted by jebrii over 4 years ago

This should be made possible by #206

posted by jebrii over 4 years ago

On Windows 10 is not working. Is there any hope that one day it will work ;)

posted by etedesco about 4 years ago

It works for me if I switch the order of the arguments, ie I push the target (the url) to the very last arg.

As an example:

#this works:
» open --new -a "Google Chrome" --args --incognito "https://en.wikipedia.org/wiki/Main_Page"

# this is what open does in MacOS and does not work:
» open --new -a "Google Chrome" "https://en.wikipedia.org/wiki/Main_Page" --args --incognito
posted by jfromaniello about 3 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests