How to make Chrome open in kiosk mode even if there's already another instance running?

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.


Solution 1:

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.

Solution 2:

chrome.exe --chrome-frame -kiosk http://www.google.com