Running Firefox as root in a regular user's session is not supported 问题解决

2022-08-24 11:50:49 浏览数 (2)

正对ubuntu下执行firefox操作的时候异常

jenkins执行脚本报错,但是手动执行脚本,可以通过,所以判定不是脚本的问题

百度了一堆,没说出要点,直接修改组就行了

代码语言:javascript复制
1653962726911   mozrunner::runner       INFO    Running command: "/usr/bin/firefox" "--marionette" "--headless" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofilecjdfZV"
Running Firefox as root in a regular user's session is not supported.  ($XAUTHORITY is /run/user/1000/gdm/Xauthority which is owned by array.)

解决方法

代码语言:javascript复制
chown -R root:root /run/user/1000/gdm/Xauthority

0 人点赞