summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/key.h1
-rw-r--r--src/launchpad_common.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/inc/key.h b/inc/key.h
index e83bb14..b102da1 100644
--- a/inc/key.h
+++ b/inc/key.h
@@ -45,6 +45,7 @@ extern "C" {
#define AUL_K_LOADER_NAME "__AUL_LOADER_NAME__"
#define AUL_K_SDK "__AUL_SDK__"
#define AUL_K_ORG_CALLER_PID "__AUL_ORG_CALLER_PID__"
+#define AUL_K_PROFILE "__AUL_PROFILE__"
#ifdef __cplusplus
}
diff --git a/src/launchpad_common.c b/src/launchpad_common.c
index ee25fc6..f98d928 100644
--- a/src/launchpad_common.c
+++ b/src/launchpad_common.c
@@ -684,6 +684,12 @@ void _set_env(appinfo_t *menu_info, bundle *kb)
snprintf(buf, sizeof(buf), "%d", getpid());
setenv("AUL_PID", buf, 1);
+ str = bundle_get_val(kb, AUL_K_PROFILE);
+ if (str != NULL && strcmp(str, "wearable") == 0 &&
+ menu_info->comp_type &&
+ strcmp(menu_info->comp_type, "widgetapp") == 0)
+ setenv("EVAS_WAYLAND_SHM_BUFFERS", "2", 1);
+
#ifdef TIZEN_FEATURE_SET_PERSONALITY_32
int res = personality(PER_LINUX32);