AnsweredAssumed Answered

can not run chromium-x11 with myuser user in xwayland on imx8 maaxboard (imx8mqevk)

Question asked by peter zhang on Apr 3, 2020
Latest reply on Apr 21, 2020 by peter zhang

Hi 

my yocto image I built works well in  imx8 maaxboard porting from imx8mqevk.

in root user:

chromium --no-sandbox 

it works.

but I use another user myuser, it can start up:

error output as below:

export DISPLAY=:0;sudo -u myuser chromium 

No protocol specified

(chromium:3670): Gtk-WARNING **: cannot open display: 0

 

--------------------

in my local.conf for myuser I add as below same as before I added in rapberry pi 4

EXTRA_USERS_PARAMS = "usermod -P ${ROOT_PASSWORD} root;"
57 EXTRA_USERS_PARAMS += "useradd -P ${ROOT_PASSWORD} myuser;"
58 EXTRA_USERS_PARAMS += "usermod -G sudo myuser;"

 

 

 

any idea?

 

Thanks.

Outcomes