summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2016-02-24 20:27:36 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2016-02-25 07:15:02 +0900
commitf8c3b57808e6434dd43e8257c0c3afdde43ed5a8 (patch)
tree033943eceb2b153fc7b8105cf7101089cf129bb0
parentde28b75969f00639313946774c54b7f7781955fc (diff)
downloadlaunchpad-f8c3b57808e6434dd43e8257c0c3afdde43ed5a8.tar.gz
launchpad-f8c3b57808e6434dd43e8257c0c3afdde43ed5a8.tar.bz2
launchpad-f8c3b57808e6434dd43e8257c0c3afdde43ed5a8.zip
Change-Id: Ib62a49520d3467042b36b6e1c4ef0d5deaf8e03f Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--inc/key.h1
-rw-r--r--src/launchpad_common.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/inc/key.h b/inc/key.h
index be5d9af..25554cd 100644
--- a/inc/key.h
+++ b/inc/key.h
@@ -41,6 +41,7 @@ extern "C" {
#define AUL_K_WAYLAND_DISPLAY "__AUL_WAYLAND_DISPLAY__"
#define AUL_K_WAYLAND_WORKING_DIR "__AUL_WAYLAND_WORKING_DIR__"
#define AUL_K_ROOT_PATH "__AUL_ROOT_PATH__"
+#define AUL_K_API_VERSION "__AUL_API_VERSION__"
#ifdef __cplusplus
}
diff --git a/src/launchpad_common.c b/src/launchpad_common.c
index c3f942d..97b868f 100644
--- a/src/launchpad_common.c
+++ b/src/launchpad_common.c
@@ -607,6 +607,9 @@ void _set_env(appinfo_t *menu_info, bundle * kb)
if (str != NULL)
setenv("XDG_RUNTIME_DIR", str, 1);
+ str = bundle_get_val(kb, AUL_K_API_VERSION);
+ if (str != NULL)
+ setenv("TIZEN_API_VERSION", str, 1);
}
char** _create_argc_argv(bundle * kb, int *margc)