スコア
60
Advertisement
回答 (6)
解決策が見つかりました
Advertisement
スコア
29
2014-10-23 10:58:59 +0000
以下の行を試してみてください
chrome.exe --kiosk --disable-session-crashed-bubble "http://example.com"
詳しい情報はこちら http://peter.sh/experiments/chromium-command-line-switches/
AhbapAldirmaz
http://superuser.stackexchange.com/users/151992
Advertisement
スコア
28
2015-01-15 01:33:30 +0000
私は提供されたソリューションにいくつかの不都合を見ています。
–incognitoスイッチはキャッシュを削除します。
(クロームヘルプをコピーペーストする)
Google Chromeには何百もの文書化されていないコマンドラインフラグがあり、開発者の気まぐれで追加・削除される。
–disable-session-crashed-bubbleは使用しているクロームのバージョンに依存します。
–disable-session-crashed-bubbleはどのバージョンのクロームを使用しているかによりますが、最も実際のバージョンであるv39ではこの設定は許可されていません。
これは私がUbuntu 12.04と14.04の下でクロムのみのセッションでキオスクモードで実行しているスクリプトです
#!/bin/sh
sed -i 's/"exited_cleanly": false/"exited_cleanly": true/' ~/.config/google-chrome/Default/Preferences
sed -i 's/"exit_type": "Crashed"/"exit_type": "None"/' ~/.config/google-chrome/Default/Preferences
google-chrome --kiosk "http://some_url"
It simply finds and replace the string
- “exited_cleanly”:false
- exit_type". “Crashed”
with
- “exited_cleanly”: true
- “exit_type”. “None”
だから、どんなにクロームが閉じても 優雅に終了したと思われてしまいます。
スコア
14
2012-11-14 01:23:27 +0000
chrome://flags/に移動して、"Enable“
と書かれたリンクのDisable Better session restoreをクリックしてみてください。
Eran Medan
http://superuser.stackexchange.com/users/151992
Advertisement