hi all
I am playing imx8 maaxboard and iwave boards,
I use the below system service can auto startup chromium on maaxboard wayland with root user, but it's not safe with root user, so I need to startup with non-root user.
I tried to modify it somewhere, but not work. eg , I changed one of the lines like this :ExecStart=sudo -u myuser /usr/bin/chromium --gpu-no-context-lost --enable-gpu-rasterization --start-fullscreen --kiosk --no-first-run --incognito http://localhost:3300/rpi.html > /dev/null 2>&1 &
but not work.
any help?
my service ,you can see it's root user with --no-sandbox option :
/etc/systemd/system/chromium.service
works in root user
----
Description=launch chromium
[Service]
User=root
Environment=DISPLAY=:0
Environment=XDG_RUNTIME_DIR="/run/user/0"
Type=oneshot
ExecStart=/bin/sleep 15
ExecStart=/usr/bin/chromium --no-sandbox --disable-infobars --user-data-dir=/tmp/chromium --gpu-no-context-lost --enable-gpu-rasterization --start-fullscreen --kiosk --no-first-run --incognito http://localhost:3300/rpi.html > /dev/null 2>&1 &
[Install]
WantedBy=multi-user.target
I posted my question at here too, I think this is a wayland system service question.
https://www.element14.com/community/message/302365/l/how-to-write-a-system-service-to-auto-startup-c...