From: Hwankyu Jhun Date: Tue, 14 Jun 2016 08:05:55 +0000 (+0900) Subject: Add the root path to the environment X-Git-Tag: accepted/tizen/common/20160615.193245^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f637f0184d998bf01d6353a7d352fe39e546dc9e;p=platform%2Fcore%2Fappfw%2Fdebug-launchpad.git Add the root path to the environment Change-Id: If77de10a6932acf9be7cb055cdb4701f1800041a Signed-off-by: Hwankyu Jhun --- 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);