how to suppress "chromium didn't shut down correctly..." notification ?

8,523 views
Skip to first unread message

Marcellus Wallace

unread,
Feb 13, 2011, 1:44:13 PM2/13/11
to Chromium-discuss
Hi,
I'd like to make simple presentation screen : on startup, chromium
will start automatically and load a page in kiosk mode.

"chromium-browser -kiosk /folder/presentation.hml"

But the PC will be powered off with a power plug switch.

I'd like to disable the "chromium didn't shut down..." at each reboot.

How can I do ?

Thanks.

Caleb Eggensperger

unread,
Feb 13, 2011, 10:08:27 PM2/13/11
to bernon...@gmail.com, Chromium-discuss
Why are you hard resetting the PC in this setup? That is generally not
advisable....

You could use the --user-data-dir= command line switch to use a
different user directory, then wipe it before each run of the
chromium-browser command. I assume the "chromium didn't shut down
correctly" message is based on data in that directory.

$ rm -rf ~/temp_data_dir; chromium-browser
--user-data-dir=~/temp_data_dir --kiosk preso.html

> --
> Chromium Discussion mailing list: chromium...@chromium.org
> View archives, change email options, or unsubscribe:
>    http://groups.google.com/a/chromium.org/group/chromium-discuss
>

--
Caleb Eggensperger
www.calebegg.com

Marcellus Wallace

unread,
Feb 17, 2011, 2:27:50 PM2/17/11
to Chromium-discuss
Thanks for your answer, but it's what I already do. I think there is a
log file in another place which I have to modify if I don't find how
to suppress this notification.

Marcellus Wallace

unread,
Feb 18, 2011, 12:54:37 PM2/18/11
to Chromium-discuss
Ok I think it's ok now :
There is a config folder in .cache/chromium
so at each start, I erase it and I launch chromium with --no-first-run
option

I found useful commands flags here : http://peter.sh/experiments/chromium-command-line-switches/

PhistucK

unread,
Nov 6, 2012, 1:24:32 AM11/6/12
to scott....@freshloc.com, chromium...@chromium.org, bernon...@gmail.com
However, any preference you set afterward will not be stored.

PhistucK



On Tue, Nov 6, 2012 at 5:55 AM, Scott <scott....@freshloc.com> wrote:
This is VERY easy to fix. and to bypass. what im going to tell you is very simple and nobody thought to try it :)  what I did to fix this was to simply make sure you do a clean shutdown. (where if you where to bring up chrome again there would be NO error) then after that browse to AppData\Local\Google\Chrome\User Data\Default\preferences.  then simply right click on it and bring up properties screen. then choose "READ ONLY".  this will prevent google chrome from writing the flag that will say "Clean-shutdown"false"  thus avoiding the unclean shutdown message..  cheers !! (file attached)

jschm...@gmail.com

unread,
May 11, 2013, 12:04:38 PM5/11/13
to chromium...@chromium.org, scott....@freshloc.com, bernon...@gmail.com
This batch file solves both issues:
if not exist "%USERPROFILE%\AppData\Local\Google" goto end
cd /d "%USERPROFILE%\AppData\Local\Google"
attrib +r "%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Preferences"
taskkill /f /im chrome.exe
timeout /t 4 /NOBREAK
del /q /s *.tmp "Current Session*.*" "Last*.*"
start chrome

:end

xi...@madiya.org

unread,
Jun 26, 2013, 2:24:23 PM6/26/13
to chromium...@chromium.org, scott....@freshloc.com, bernon...@gmail.com
Don't screw with attributes. Fix the actual problem.

Use sed for windows, cygwin, or some other viable replacement to the following command.

Before starting chrome, run: 
sed -i bak 's/\("exited_cleanly": *\)false,/\1true,/' "%USERPROFILE%\Local\Google\Chrome\User Data\Default\Preferences"
Reply all
Reply to author
Forward
0 new messages