From: Jose Bollo Date: Mon, 27 Aug 2018 16:25:30 +0000 (+0200) Subject: main-afb-daemon: Set AFB_ROOTDIR and AFB_WORKDIR in environment X-Git-Tag: 5.99.5~2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=5dd7df31306b95a3fafe6d3238d4553107a6c70f;hp=5dd7df31306b95a3fafe6d3238d4553107a6c70f;p=src%2Fapp-framework-binder.git main-afb-daemon: Set AFB_ROOTDIR and AFB_WORKDIR in environment It may be difficult to retrieve the root directory from bindings and from process spawn by option --exec. In the same way, well identifying the workdir might interest programs or bindings. So, from now, the environment variables below are set: - AFB_ROOTDIR: identify the rootdir as set by --rootdir and in the context of AGL it will be the widget directory - AFB_WORKDIR: identify the workdir as set by --workdir To avoid any confusion, the function realpath is used to export absolute path names. Bug-AGL: SPEC-1694 Change-Id: Id272e009ca975e28aaab8b14fa2a98fbd2216e73 Signed-off-by: Jose Bollo Signed-off-by: José Bollo ---