summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/launchpad_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/launchpad_common.c b/src/launchpad_common.c
index f1b4532..e71c511 100644
--- a/src/launchpad_common.c
+++ b/src/launchpad_common.c
@@ -630,6 +630,7 @@ error:
void _set_env(appinfo_t *menu_info, bundle *kb)
{
const char *str;
+ char buf[MAX_LOCAL_BUFSZ];
str = bundle_get_val(kb, AUL_K_STARTTIME);
if (str != NULL)
@@ -657,6 +658,9 @@ void _set_env(appinfo_t *menu_info, bundle *kb)
str = bundle_get_val(kb, AUL_K_API_VERSION);
if (str != NULL)
setenv("TIZEN_API_VERSION", str, 1);
+
+ snprintf(buf, sizeof(buf), "%d", getpid());
+ setenv("AUL_PID", buf, 1);
}
char **_create_argc_argv(bundle *kb, int *margc)