summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-graphical-qt5/recipes-qt/qt5/qtwayland/UNUSED_NEEDS_CHECK_YOCTO_0018-packaging-enable-xdg-shell-at-runtime.patch
blob: bca61b5dbe37837c33c142507286e7ed5b7df081 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 9617c349a212d5407087daf4f4a2386bce94ecc1 Mon Sep 17 00:00:00 2001
From: Philippe Coval <philippe.coval@open.eurogiciel.org>
Date: Thu, 12 Jun 2014 11:55:29 +0200
Subject: [PATCH 18/21] packaging: enable xdg-shell at runtime

Change-Id: Iffbae496f1e09c8fa44a28d4eb515678e3bbb297
Bug-Tizen: TIVI-3113/part
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
---
 packaging/qt5-qtwayland.spec | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/packaging/qt5-qtwayland.spec b/packaging/qt5-qtwayland.spec
index cba18e2..ff32185 100644
--- a/packaging/qt5-qtwayland.spec
+++ b/packaging/qt5-qtwayland.spec
@@ -97,6 +97,11 @@ rm -rf %{buildroot}
 
 %post
 /sbin/ldconfig
+
+f="/etc/profile.d/qt.sh"
+grep QT_WAYLAND_USE_XDG_SHELL $f \
+    || echo "QT_WAYLAND_USE_XDG_SHELL='defined'; export QT_WAYLAND_USE_XDG_SHELL"  >> $f
+
 %postun
 /sbin/ldconfig
 
-- 
1.9.1