All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] weston-init: Use weston-launch for XWayland
@ 2015-12-01 20:31 Tom Hochstein
  2015-12-01 22:21 ` alexander.kanavin
  0 siblings, 1 reply; 8+ messages in thread
From: Tom Hochstein @ 2015-12-01 20:31 UTC (permalink / raw)
  To: openembedded-core; +Cc: Prabhu Sundararaj

From: Prabhu Sundararaj <prabhu.sundararaj@freescale.com>

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

Signed-off-by: Tom Hochstein <tom.hochstein@freescale.com>
---
 meta/recipes-graphics/wayland/weston-init/init | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/wayland/weston-init/init b/meta/recipes-graphics/wayland/weston-init/init
index 2e938f4..d1e902f 100644
--- a/meta/recipes-graphics/wayland/weston-init/init
+++ b/meta/recipes-graphics/wayland/weston-init/init
@@ -38,7 +38,15 @@ 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
+        fi
   ;;
 
   stop)
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-12-11 12:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-01 20:31 [PATCH v2] weston-init: Use weston-launch for XWayland Tom Hochstein
2015-12-01 22:21 ` alexander.kanavin
2015-12-07 13:19   ` Tom Hochstein
2015-12-07 14:13     ` Otavio Salvador
2015-12-07 14:18       ` Alexander Kanavin
2015-12-10 23:44         ` Tom Hochstein
2015-12-11 12:29           ` Alexander Kanavin
2015-12-11 12:34             ` Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.