1

We have an automation setup, where we need to start Google Chrome (v98) from the Command Line. We do that via the following command:

chrome <website-url> --start-maximized

This works well under normal circumstances, but if Chrome crashed in the last session, you get a warning, asking if you want to restore the previous session, which we never do.

Chrome restore prompt

Sorry prompt being in danish, but I guess you know what I'm talking about.

I have Googled the issue and found lots of potential flags you can add, but I haven't found any that works. Here are some of them:

  • --disable-session-crashed-bubble
  • --new-window
  • --restore-last-session
  • --incoginito

The only one that works with the current version of Chrome (98) is --incognito. But since we need plugins, this is not a viable solution. I have found some solutions which involves editing the Preferences file.

But are there really no simpler solution? There was a working flag once it seems, why isn't there one now? Or some other way to reset it with a simple command?

1 Answer 1

1

According to this docs, maybe

  • --hide-crash-restore-bubble
  • --restore-last-session

could work.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .