[OE-core] [PATCH] weston-init: Use weston-launch for XWayland

Otavio Salvador otavio.salvador at ossystems.com.br
Thu Nov 26 11:00:09 UTC 2015


Hello Tom,

Thanks for working with Prabhu on this. I am adding Ross on Cc so he
can comment on this as well.

On Wed, Nov 25, 2015 at 9:17 PM, Tom Hochstein
<tom.hochstein at freescale.com> wrote:
> From: Prabhu Sundararaj <prabhu.sundararaj at freescale.com>
>
> When XWayland is configured, Weston must be started using the
> weston-launch utility.
>
> Signed-off-by: Tom Hochstein <tom.hochstein at freescale.com>
> ---
>  meta/recipes-graphics/wayland/weston-init/init | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-graphics/wayland/weston-init/init b/meta/recipes-graphics/wayland/weston-init/init
> index 2e938f4..1d4e577 100644
> --- a/meta/recipes-graphics/wayland/weston-init/init
> +++ b/meta/recipes-graphics/wayland/weston-init/init
> @@ -38,7 +38,16 @@ case "$1" in
>                  chmod 0700 $XDG_RUNTIME_DIR
>          fi
>
> -        openvt -s weston -- $OPTARGS
> +        # If weston-launch exists, we're configured for XWayland.
> +        if [ -f /usr/bin/weston-launch ]; then
> +            echo "Starting Weston in XWayland"
> +            export XDG_CONFIG_HOME=/etc
> +            openvt -v -- weston-launch -- --log=/var/log/weston.log $OPTARGS
> +        else
> +            echo "Starting Weston"
> +            openvt -s weston -- --log=/var/log/weston.log $OPTARGS
> +            #grep console to look for gal2d-renderer.so. if no failed

This comment is no sense for the common script; please drop this.

> +        fi
>    ;;
>
>    stop)
> --
> 2.1.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list