I tried
chrome url --kiosk
but it works only when there's no instance running. I also tried
chrome url --kiosk --new-window
but it doesn't solve my problem neither.
I tried
chrome url --kiosk
but it works only when there's no instance running. I also tried
chrome url --kiosk --new-window
but it doesn't solve my problem neither.
According to this answer, you need to create a new directory and use it for the user-data-dir. This should get you started quickly:
chrome --user-data-dir=$(mktemp -d) --kiosk
That will launch an entirely new instance of Crome in kiosk mode. Note the use of mktemp above to make a temporary directory. Depending on your goals, you may want to save that to a variable and delete it after Chrome exits.
On Mac OS X:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=$(mktemp -d -t chrome)