summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2016-06-14 17:05:55 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2016-06-14 17:08:41 +0900
commitf637f0184d998bf01d6353a7d352fe39e546dc9e (patch)
treeea882d33e45369251013defee6c140d8225aaa6b
parentbdf76d0705550617e09996cf84ec832a99a9bb7c (diff)
downloaddebug-launchpad-f637f0184d998bf01d6353a7d352fe39e546dc9e.tar.gz
debug-launchpad-f637f0184d998bf01d6353a7d352fe39e546dc9e.tar.bz2
debug-launchpad-f637f0184d998bf01d6353a7d352fe39e546dc9e.zip
Change-Id: If77de10a6932acf9be7cb055cdb4701f1800041a Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--include/debug_util.h1
-rw-r--r--include/defs.h1
-rw-r--r--src/common.c4
3 files changed, 5 insertions, 1 deletions
diff --git a/include/debug_util.h b/include/debug_util.h
index b86e07d..f8d7a61 100644
--- a/include/debug_util.h
+++ b/include/debug_util.h
@@ -28,7 +28,6 @@ int _prepare_debug_tool(bundle *kb, const char *appid,
const char **str_arr, int len);
void _change_file(const char *path);
void _wait_for_valgrind_output(void);
-void _set_env(appinfo_t *app_info, bundle *kb);
char **_create_argc_argv(bundle *kb, int *margc, const char *app_path);
#endif /* __DEBUG_UTIL_H__ */
diff --git a/include/defs.h b/include/defs.h
index 698c2a7..b298998 100644
--- a/include/defs.h
+++ b/include/defs.h
@@ -35,6 +35,7 @@
#define AUL_K_WAYLAND_DISPLAY "__AUL_WAYLAND_DISPLAY__"
#define AUL_K_WAYLAND_WORKING_DIR "__AUL_WAYLAND_WORKING_DIR__"
#define AUL_K_API_VERSION "__AUL_API_VERSION__"
+#define AUL_K_ROOT_PATH "__AUL_ROOT_PATH__"
#define SDK_CODE_COVERAGE "CODE_COVERAGE"
#define SDK_DEBUG "DEBUG"
diff --git a/src/common.c b/src/common.c
index 1f76ea4..faed540 100644
--- a/src/common.c
+++ b/src/common.c
@@ -526,6 +526,10 @@ void _set_env(appinfo_t *appinfo, bundle *kb)
if (str)
setenv("TIZEN_API_VERSION", str, 1);
+ str = bundle_get_val(kb, AUL_K_ROOT_PATH);
+ if (str)
+ setenv("AUL_ROOT_PATH", str, 1);
+
libdir = __get_libdir(appinfo->app_path);
if (libdir) {
setenv("LD_LIBRARY_PATH", libdir, 1);