To start Weston without root privileges
Weston can be launched as non-root with the weston-launch binary. It is present in /usr/local/bin
for Ubuntu rootfs. Follow the steps below to launch weston as non-root.
- Add the non root user to weston-launch group:
sudo su usermod -a -G weston-launch <non_root_user_name> chown root /usr/local/bin/weston-launch chmod +s /usr/local/bin/weston-launch
- Launch weston with weston-launch binary as
non-root:
su <non_root_user_name> weston-launch [args...] [-- [weston args..]]
For example:
- Run weston-launch with
desktop-shell:
weston-launch -- --shell=desktop-shell.so
- Run weston-launch with ivi-shell:
-
weston-launch -- --shell=ivi-shell.so
- Run weston-launch with
desktop-shell: