batch file - Prompted by "Google Chrome didn't shut down correctly.... " -


using google chrome 38.0.2125.111 m in windows 7 environment. launched batch file & set go specific (internal) url. windows environment going locked down, permitting handful of options available user.

chrome being used because ie accessing different site. without going boring detail, using both sites on single browser allowed user access account wasn't theirs. both browsers launched using 1 of 2 batch files. chrome batch file supplies username & password bypass login screen on application.

to keep opening multiple windows in chrome, following batch file used:

taskkill /f /t /im chrome.exe > nul ping -n 3 127.0.0.1 > nul start /max chrome "http://myinternalwebsite?uid=x&pwd=y" 

taskkill used close chrome (/f = force /t = terminates process & child ones /im = image name).

if chrome session closed (using x @ upper right corner of screen), batch file works fine. however, if there chrome instance running, yellow bar frowning folder & message saying:

google chrome didn't shut down correctly. reopen pages had open, click restore.

i have tried several command line options when launching google chrome, none keep message displaying. ones have tried are:

  • --disable-restore-session-state
  • --disable-session-crashed-bubble
  • --incognito

among others. i've experimented of settings in chrome, none have (yet) worked. --incognito option works - sort of. keeps blocking plugins, 1 of silverlight - 1 of chief components website function. though rid of message, leaves site not functioning properly.

the intent on using taskkill flush existing chrome sessions prevent user opening dozen different chrome instances of same thing.

is there way keep user opening multiple instances of chrome won't leave chrome thinking didn't close properly? given user restrictions, i'm not sure script/batch file edit preferences file in chrome folder work. extension may option, third party application not be.

would appreciate thoughts or assistance.

thanks!

chromium writes exit status preferences file. when starts writes preferences file with: "exited_cleanly": false

and upon clean exit writes preferences file with: "exited_cleanly": true

to prevent message unclean shut down make sure have "exited_cleanly": true written in preferences file

on linux kiosk running on raspberry pi sed command line added /etc/rc.local fixes issue permanently:

sed -i 's/exited_cleanly\":\ false/exited_cleanly\":\ true/g' /home/pi/.config/chromium/default/preferences


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -