Em sex., 4 de ago. de 2023 às 20:54, Khem Raj <raj.k...@gmail.com> escreveu: > On Fri, Aug 4, 2023 at 1:05 PM Otavio Salvador <ota...@ossystems.com.br> > wrote: > > -su -c "XDG_RUNTIME_DIR=/run/user/`id -u ${WESTON_USER}` weston > > $weston_args --log=/tmp/weston.log" $WESTON_USER > > +if [ -z "$WAYLAND_DISPLAY" ]; then > > + WAYLAND_DISPLAY=/run/wayland-0 > > This can be set automatically by something like > WAYLAND_DISPLAY=`basename /run/user/1000/wayland-[0-9]` > > That way it can cover more e.g. my variscite/imx8 SOM I have wayland-1
This uses the same as systemd, so it has the same behavior. However, it supports users to override it using /etc/default/weston. So it sets this only if unset. -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#185552): https://lists.openembedded.org/g/openembedded-core/message/185552 Mute This Topic: https://lists.openembedded.org/mt/100553774/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-