From: "Franklin S. Cooper Jr" <[email protected]>

* There are important Wayland environment variables that needs to be set and
  those variables are only being set within Matrix's init script even though 
this
  should be set globally.
* Create a wayland_env.sh that contains these Qt specific environment variables
  and install it into /etc/profile.d which will insure these environment 
variables
  are global and the default.

Signed-off-by: Franklin S. Cooper Jr <[email protected]>
---
 .../recipes-graphics/wayland/files/wayland_env.sh  |    6 ++++++
 .../recipes-graphics/wayland/weston_1.4.0.bbappend |   17 ++++++++++++++++-
 2 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 
meta-arago-extras/recipes-graphics/wayland/files/wayland_env.sh

diff --git a/meta-arago-extras/recipes-graphics/wayland/files/wayland_env.sh 
b/meta-arago-extras/recipes-graphics/wayland/files/wayland_env.sh
new file mode 100644
index 0000000..201e264
--- /dev/null
+++ b/meta-arago-extras/recipes-graphics/wayland/files/wayland_env.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+### Wayland Environment Variables ###
+
+export XDG_RUNTIME_DIR=/run/user/root
+export WAYLAND_DISPLAY=wayland-0
diff --git a/meta-arago-extras/recipes-graphics/wayland/weston_1.4.0.bbappend 
b/meta-arago-extras/recipes-graphics/wayland/weston_1.4.0.bbappend
index d9e6108..5b499ba 100644
--- a/meta-arago-extras/recipes-graphics/wayland/weston_1.4.0.bbappend
+++ b/meta-arago-extras/recipes-graphics/wayland/weston_1.4.0.bbappend
@@ -1,4 +1,19 @@
 # When configured for fbdev compositor, make it the default
 PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor 
WESTON_NATIVE_BACKEND="fbdev-backend.so",--disable-fbdev-compositor,udev mtdev"
 
-PR_append = "-arago0"
+PR_append = "-arago1"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI += "file://wayland_env.sh"
+
+# Add custom Arago Wayland Environment script file
+do_install_append () {
+    install -d ${D}${sysconfdir}/profile.d
+    install -m 0644 ${WORKDIR}/wayland_env.sh ${D}${sysconfdir}/profile.d/
+}
+
+PACKAGES += "${PN}-conf"
+
+FILES_${PN}-conf += "${sysconfdir}/profile.d/*"
+RDEPENDS_${PN} += "${PN}-conf"
-- 
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to