Saturday 21 October 2017

windows - 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.



Answer



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.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...