Disable Chrome session restore popup
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Puzzle4
--
Chapters
00:00 Question
00:50 Accepted answer (Score 6)
02:03 Answer 2 (Score 14)
02:43 Answer 3 (Score 5)
03:27 Answer 4 (Score 2)
03:47 Thank you
--
Full question
https://superuser.com/questions/1343290/...
Question links:
[image]: https://i.stack.imgur.com/uIjDF.jpg
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#googlechrome
#avk47
ANSWER 1
Score 15
Edit the file located at C:\Users\username\AppData\Local\Google\Chrome\User Data\Default
Right click "Preference" file and click edit. ctrl+f to find the following values, and change the value to:
"exit_type": "none",
"exited_cleanly":true,
Save the file, and change the attribute to "read only" so chrome can't change it back.
ACCEPTED ANSWER
Score 6
Chrome has a special flag to disable session restore window. But be aware options in chrome://flags
are experimental and you may lose browser data or compromise your security or privacy.
Follow these steps:
- Open Chrome.
- Type
chrome://flags/#infinite-session-restore
in address bar (Crtl+L). - Click on the right drop-down menu and change the 'Default' value to 'Disable'. Then restart Chrome to apply that setting.
So what does this do? That option says -- "Reduces the number of tabs being loaded simultaneously during session restore, to improve responsiveness of the foreground tab". After disabling and restating Chrome, it relaunches chrome.exe
with --disable-features=InfiniteSessionRestore
option.
ANSWER 3
Score 5
After @Biswarpriyo s Answer don't work anymore (the flag got removed), it is possible to start Chrome (tried it with 86.0.4240) with the --disable-session-crashed-bubble
parameter.
For Linux: Just add it after the command in terminal. For example: chrome --disable-session-crashed-bubble
For Windows: You have to create a shortcut to chrome.exe (usually located in C:\Program Files (x86)\Google\Chrome\Application\ ) and add it to the target like described here
ANSWER 4
Score 2
See my answer on how I resolved this for the Chromium on a raspberry pi.
https://superuser.com/a/1643107/690627
Basically
su
(note: super-user remain in current user path, now using relative to local path)
chattr +i .config/chromium/Default/Preferences
chattr +i .config/chromium/'Local State'