diff options
author | Kazumasa Mitsunari <kazumasa_mitsunari_za@mail.toyota.co.jp> | 2016-11-08 11:49:02 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <kazumasa_mitsunari_za@mail.toyota.co.jp> | 2016-11-08 11:49:02 +0900 |
commit | 3327570246b6ec0e1949ba44b25badf5f0eb63b5 (patch) | |
tree | e7fea696ece17a989dc0e6a1ba5b443ff2144e2b /meta-application-manager/recipes-application-framework | |
parent | 0de8b1f6bbc2ec0bb743859573c2f7a812d19004 (diff) |
1. Enable aglglobalapp to render app using libEGL.so.
Originally AGL enables only root user to use libEGL.so
because a device is owned by root and video group.
It caused users fail to initialize EGL config.
2. Enable user to use XDG_RUNTIME_DIR=/run/user/0
Users don't need to write shell script basically.
But if application would like to set unieque environment variables,
it is necessary to write shell script.
Signed-off-by: Kazumasa Mitsunari <kazumasa_mitsunari_za@mail.toyota.co.jp>
Diffstat (limited to 'meta-application-manager/recipes-application-framework')
-rw-r--r-- | meta-application-manager/recipes-application-framework/aul/aul.inc | 2 | ||||
-rw-r--r-- | meta-application-manager/recipes-application-framework/aul/files/amd_session_agent.service.patch | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/meta-application-manager/recipes-application-framework/aul/aul.inc b/meta-application-manager/recipes-application-framework/aul/aul.inc index 366e59d..1b853c3 100644 --- a/meta-application-manager/recipes-application-framework/aul/aul.inc +++ b/meta-application-manager/recipes-application-framework/aul/aul.inc @@ -4,7 +4,7 @@ SECTION = "System/Libraries" LICENSE = "Apache-2.0" PV = "0.0.300" -SRC_URI = "" +SRC_URI = "file://amd_session_agent.service.patch" S = "${WORKDIR}/git" diff --git a/meta-application-manager/recipes-application-framework/aul/files/amd_session_agent.service.patch b/meta-application-manager/recipes-application-framework/aul/files/amd_session_agent.service.patch new file mode 100644 index 0000000..8164738 --- /dev/null +++ b/meta-application-manager/recipes-application-framework/aul/files/amd_session_agent.service.patch @@ -0,0 +1,13 @@ +diff --git a/packaging/amd_session_agent.service b/packaging/amd_session_agent.service +index 3b3357b..76c4824 100644 +--- a/packaging/amd_session_agent.service ++++ b/packaging/amd_session_agent.service +@@ -6,6 +6,8 @@ + Description=Start the USER Access Control Agent + + [Service] ++Environment=XDG_RUNTIME_DIR=/run/user/0 ++Environment=LD_PRELOAD=/usr/lib/libEGL.so + ExecStart=/bin/sh -l -c "/usr/bin/amd_session_agent" + + [Install] |