Add the root path to the environment 42/74442/3 accepted/tizen/common/20160615.193245 accepted/tizen/ivi/20160615.001453 accepted/tizen/mobile/20160615.001620 accepted/tizen/tv/20160615.001534 accepted/tizen/wearable/20160615.001547 submit/tizen/20160614.094055
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 14 Jun 2016 08:05:55 +0000 (17:05 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 14 Jun 2016 08:08:41 +0000 (17:08 +0900)
Change-Id: If77de10a6932acf9be7cb055cdb4701f1800041a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
include/debug_util.h
include/defs.h
src/common.c

index b86e07d..f8d7a61 100644 (file)
@@ -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__ */
index 698c2a7..b298998 100644 (file)
@@ -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"
index 1f76ea4..faed540 100644 (file)
@@ -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);