[OE-core] [PATCH v2] weston-init: Use weston-launch for XWayland
Alexander Kanavin
alexander.kanavin at linux.intel.com
Fri Dec 11 12:29:40 UTC 2015
On 12/11/2015 01:44 AM, Tom Hochstein wrote:
> # There are multiple ways to start weston.
> if [ "$WAYLAND_DISPLAY" ]; then
> echo -e "\aError: Weston is already running."
> echo "This script does not support launching Weston nested."
> exit 1
> else if [ "$DISPLAY" ]; then
> echo "Launching Weston with the x11 backend"
> openvt -s weston -- --log=/var/log/weston.log $OPTARGS
> else
> echo "Launching Weston with the DRM backend"
> export XDG_CONFIG_HOME=/etc
> openvt -v -- weston-launch -- --log=/var/log/weston.log $OPTARGS
> fi
>
> I still need to test this (and apply the design in systemd), but I wanted your feedback on the approach.
I think this looks okay, but you obviously need to test that all three
scenarios works as expected. Also, systemd unit file language may not
support this logic (it's not a full programming language), so the above
snippet probably needs to be separated into a wrapper script.
Alex
More information about the Openembedded-core
mailing list