Komputer jest wyłączany fizycznym przyciskiem zasilania gdy włączony jest Chrome. Po ponownym włączeniu pojawia się komunikat z pytaniem o przywrócenie sesji czego nie chcę. Miejsce akcji to Lubuntu.
Są opisy jak to wyłączyć, ale żaden z nich nie działa. Może coś źle robię?
1. [puppeteer - Disable Chrome "Restore pages? Chrome didn't shut down correctly" and other browser messages - Stack Overflow](
https://stackoverflow.com/questions/69791724/disable-chrome-restore-pages-chrome-didnt-shut-down-correctly-and-other-brow)
chrome 113 - this command line worked for me:
--hide-crash-restore-bubble
ale co ja mam zrobić z tą linijką?
2. Tutaj
https://forum.ui.vision/t/how-to-disable-restore-pages-dialog-in-chrome/11695piszą aby uruchomić Chrome z parametrem
--disable-session-crashed-bubble
ale jak dokładnie w Lubuntu można uruchomić Chromea z parametrem
https://askubuntu.com/questions/293546/how-to-launch-google-chrome-with-custom-parameters-by-defaultEdit the .desktop file in
/usr/share/applications/google-chrome.desktop
Edit the exec line and add the arguments you need
ale znów dodając w właściwościach pliku "google-chrome.desktop" po wpisie "google-chrome.desktop" jest jakiś błąd
3. Tutaj
https://superuser.com/questions/1343290/disable-chrome-session-restore-popuppiszą aby
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<i>type": "none",
"exited</i> cleanly":true,
Save the file, and change the attribute to "read only" so chrome can't change it back.
wpisu "exited_cleanly":true, w tym pliku Preferneces w ogóle nie ma. Ten drugi wpis sam zmienia wartość na "Normal" po uruchomieniu Chrome pomimo ustawienia w pliku "Preferences" Read-Only