Hi all,
On my Linux Lite system I once in a while need to run google-chrome in a sandboxed environment with firejail´s private option:
firejail --private google-chrome
.
This is equal to running the browser for the very first time, exactly like a fresh install of it.
Accordingly I´m presented with the welcome procedure of google-chrome. It asks me whether to set it as a default browser (which I don´t want to) and a variety of other things.
Going through that procedure every time is rather annoying.
So I was asking myself whether there would be a command-line option of google chrome allowing me to circumvent this procedure.
And indeed there is :
(But the man-pages wouldn´t tell me about it.)
Chrome does have command-line flags that can help skip or disable the first-run setup process. The most relevant one for my case is:
--no-first-run
This flag tells Chrome to skip the “first run” tasks (like setting up the profile, default browser prompt, etc.).
So my command would look like:
firejail --private google-chrome --no-first-run
Or if you’re using Chromium instead of the Google-branded Chrome:
firejail --private chromium-browser --no-first-run
Optional: Suppress default browser prompt
If --no-first-run
doesn’t suppress everything (e.g., the default browser prompt), you might also want to add:
--no-default-browser-check
So the full command would be:
firejail --private google-chrome --no-first-run --no-default-browser-check
Works perfectly for me.
All this, and much more, is documented here:
Peter Beverloo´s page is kind of a hidden gem for Chromium tinkerers and I hereby want to share the information with you.
Perhaps it might come in handy at some time.
Many greetings from Rosika