当前位置: 首页 > 工具软件 > Chromium > 使用案例 >

chromium

许奇
2023-12-01

我的环境: centos6.4


chromium安装后不能运行在root用户下:

Google Chrome can not be run as root.
Please start Google Chrome as a normal user. To run
as root, you must specify an alternate –user-data-
dir for storage of profile information.



vi /opt/chromium/chrome-wrapper

把 exec $CMD_PREFIX "$HERE/chrome" "$@"

改为exec  $CMD_PREFIX "$HERE/chrome" %U --user-data-dir=/root/.config/chromium

mkdir -p /root/.config/chromium

 类似资料: