Skip to contentSkip to conversation

weston-init: Use weston-launch for XWayland

PATCH Superseded Tom Hochstein 2 participants 2 messages Nov 25, 2015 – Nov 26, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 weston-init: Use weston-launch for XWayland

From: Prabhu Sundararaj <[email protected]>

When XWayland is configured, Weston must be started using the weston-launch utility.

---
 meta/recipes-graphics/wayland/weston-init/init | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
meta/recipes-graphics/wayland/weston-init/init +10 -1
index 2e938f4..1d4e577 100644
@@ -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
+        fi
   ;;
 
   stop)
Signature · 1 line
2.1.4
#1 lore raw

Hello Tom,

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

Quoted 18 lines · Tom Hochstein

From: Prabhu Sundararaj <[email protected]>

When XWayland is configured, Weston must be started using the weston-launch utility.

---
 meta/recipes-graphics/wayland/weston-init/init | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
meta/recipes-graphics/wayland/weston-init/init +0 -0
index 2e938f4..1d4e577 100644
@@ -38,7 +38,16 @@ case "$1" in
                 chmod 0700 $XDG_RUNTIME_DIR
         fi
 

meta/recipes-graphics/wayland/weston-init/init case "$1" in · line 49

Quoted 10 lines
meta/recipes-graphics/wayland/weston-init/init +9 -1
-        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.

Quoted 12 lines
meta/recipes-graphics/wayland/weston-init/init +1 -1
+        fi
   ;;
 
   stop)
--

2.1.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 3 lines
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