现在的位置: 首页 > 综合 > 正文

chromium

2013年02月07日 ⁄ 综合 ⁄ 共 352字 ⁄ 字号 评论关闭

我的环境: 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

抱歉!评论已关闭.