skratchdot / open-golang

Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use.
MIT License
783 stars 65 forks source link

incognito window and env #23

Open mh-cbon opened 5 years ago

mh-cbon commented 5 years ago

hey,

I wanted to be able to open a new incognito window.

I also wanted to pass in environment variable. The golang runtime might pass them around, but i feel like this is insecure. is it ? its rather important i can make sure my environment variable reaches the started window.

Like #13 says i think some options capabilities might do it.

mh-cbon commented 5 years ago

i found out this works here

firefox -private-window chromium-browser --incognito chromium-browser -incognito

same for google-chrome -incognito

here it says edge uses -private https://www.top-password.com/blog/open-edge-in-private-mode-in-windows-10/