Fix: SPEC-377, miss dbus conf file to make status icon working 81/7881/2
authorRomain Forlot <romain.forlot@iot.bzh>
Tue, 27 Dec 2016 11:43:32 +0000 (12:43 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Tue, 27 Dec 2016 11:47:13 +0000 (12:47 +0100)
Change-Id: I8b64adf1c73244447f348ae140a4bd63d3796357
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
recipes-demo-hmi/homescreen/homescreen/dbus-homescreen.conf.in [new file with mode: 0644]
recipes-demo-hmi/homescreen/homescreen_git.bb

diff --git a/recipes-demo-hmi/homescreen/homescreen/dbus-homescreen.conf.in b/recipes-demo-hmi/homescreen/homescreen/dbus-homescreen.conf.in
new file mode 100644 (file)
index 0000000..a79d70f
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0"?> <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+  <policy context="default">
+     <allow send_destination="org.agl.homescreen"/>
+  </policy>
+</busconfig>
index e03b14d..2115804 100644 (file)
@@ -25,7 +25,8 @@ SRCREV  = "${AUTOREV}"
 PV = "0.0+git${SRCPV}"
 
 SRC_URI = "git://gerrit.automotivelinux.org/gerrit/p/staging/HomeScreen.git;protocol=http \
-           file://homescreen.pc.in "
+           file://homescreen.pc.in \
+           file://dbus-homescreen.conf.in"
 
 PATH_prepend = "${STAGING_DIR_NATIVE}${OE_QMAKE_PATH_QT_BINS}:"
 
@@ -44,6 +45,11 @@ do_install() {
     ln -sf libhomescreen.so.1.0.0 ${D}${libdir}/libhomescreen.so.1
     ln -sf libhomescreen.so.1.0.0 ${D}${libdir}/libhomescreen.so.1.0
 
+# claneys: add dbus policy to make wifi/bluetooth status icon working as quick 
+# workaround. (jira.automotivelinux.org : SPEC-377)
+    install -d ${D}/etc/dbus-1/session.d
+    install -m 0644 ${WORKDIR}/dbus-homescreen.conf.in ${D}/etc/dbus-1/session.d/homescreen.conf
+
 # kooltux: still some problem with paths inside .pc file
 # error at build time:
 # ERROR: homescreen-git-r0 do_populate_sysroot: QA Issue: homescreen.pc failed sanity test (tmpdir) in path /xdt/build/tmp/work/cortexa15hf-neon-agl-linux-gnueabi/homescreen/git-r0/sysroot-destdir/usr/lib/pkgconfig [pkgconfig]