chromium kiosk解决方案配置参考
Jun 2018
29
请根据自己的需要进行增减
配置文件路径
/etc/chromium-browser/default
参数及说明
- 显示扩展页面全部配置
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --show-component-extension-options"
- 忽略GPU黑名单
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --ignore-gpu-blacklist"
- 禁止后台网络通信
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-background-networking"
- GPU光栅调优
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-gpu-rasterization --enable-native-gpu-memory-buffers --num-raster-threads=4"
- 使用移动端硬件加速(不兼容x86)
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --use-gl=egl"
- 允许扩展
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-remote-extensions"
- 设置浏览器窗口分辨率
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --window-size=1920,1080"
- 开启kisok模式
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --kiosk "
- 禁用双指缩放
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-pinch"
- 调试模式
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --remote-debugging-port=7071 --remote-debugging-addrress=0.0.0.0 --headless"
- 禁用缓存
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --aggressive-cache-discard"
- 禁用通知
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-notifications"
- 启动自动全屏
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --start-fullscreen"
- 禁止左右滑动的后退/前进事件
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --overscroll-history-navigation=0"
- 设置左右滑动事件触发阈值
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --overscroll-start-threshold=1000 "
- 开启私密浏览
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --incognito "
- 允许touch相关事件
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enabled --touch-events"
- 去除黑边
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --window-position=0,0"
- 请求手机版网页
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --use-mobile-user-agent"
- 误触过滤
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --touch-noise-filtering"
- 禁用密码存储
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-password-generation"
- 禁用自动填充
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-single-click-autofill"
- 去除首次运行提示
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --no-first-run"
- 离线页面联网后自动刷新
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-offline-auto-reload"
- 屏蔽证书错误
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --allow-insecure-localhost"
- 禁用退出全屏按钮
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-features=FullscreenExitUI"
- 修复H5默认video播放器无法控制音量问题
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-features=UseModernMediaControls"
参考
--转载请注明: https://momo.cool/chromium-%e9%83%a8%e5%88%86%e9%85%8d%e7%bd%ae%e8%af%b4%e6%98%8e/
说点什么