aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-application-manager/recipes-application-framework/aul/aul.inc2
-rw-r--r--meta-application-manager/recipes-application-framework/aul/files/amd_session_agent.service.patch13
-rwxr-xr-xmeta-application-manager/recipes-others/pkgmgr-first-setup-service/files/pkgmgr-first-setup.sh26
3 files changed, 27 insertions, 14 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]
diff --git a/meta-application-manager/recipes-others/pkgmgr-first-setup-service/files/pkgmgr-first-setup.sh b/meta-application-manager/recipes-others/pkgmgr-first-setup-service/files/pkgmgr-first-setup.sh
index 09cb3de..eec7b86 100755
--- a/meta-application-manager/recipes-others/pkgmgr-first-setup-service/files/pkgmgr-first-setup.sh
+++ b/meta-application-manager/recipes-others/pkgmgr-first-setup-service/files/pkgmgr-first-setup.sh
@@ -1,6 +1,12 @@
-#!/bin/sh -e
+#!/bin/sh
+
+grep "^aglglobalapp:" /etc/group >> /dev/null
+if [ $? -ne 0 ]; then
+ # To add a user "aglglobalapp"
+ useradd aglglobalapp
+ FIRST_TIME="ON"
+fi
-useradd aglglobalapp
loginctl enable-linger aglglobalapp
vconftool set -t string db/ail/ail_info "0" -f -s system::vconf_inhouse
vconftool set -t string db/menuscreen/desktop "0" -f -s system::vconf_inhouse
@@ -22,15 +28,9 @@ chown aglglobalapp:root /usr/share/applications
chown aglglobalapp:root /usr/apps
chown aglglobalapp:root /usr/dbspace
-pkg_initdb
-ail_initdb
-
-if [ -e /usr/lib/systemd/system/multi-user.target.wantspkgmgr-first-setup.service ]
-then
- rm /usr/lib/systemd/system/multi-user.target.wants/pkgmgr-first-setup.service
-fi
-
-if [ -e /lib/systemd/system/multi-user.target.wants/pkgmgr-first-setup.service ]
-then
- rm /lib/systemd/system/multi-user.target.wants/pkgmgr-first-setup.service
+if [ "$FIRST_TIME" ]; then
+ # This is carried out only at the time of "useradd aglglobalapp" run
+ gpasswd -a aglglobalapp video
+ pkg_initdb
+ ail_initdb
fi