If TIZEN_GLIB_CONTEXT already exists, the launchpad library does not set it to
zero. Unfortunately, the launchpad library overwrites the environment variable
even if the process is the candidate process as like dotnet loader.
Change-Id: I3c1667627ac0955a422f96cc6b9264cbf05115ec
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
setenv("TIZEN_API_VERSION", value.c_str(), 1);
setenv("AUL_PID", std::to_string(getpid()).c_str(), 1);
- setenv("TIZEN_GLIB_CONTEXT", "0", 1);
+
+ if (getenv("TIZEN_GLIB_CONTEXT") == nullptr)
+ setenv("TIZEN_GLIB_CONTEXT", "0", 1);
SetLanguageEnvironments();
SetRegionFormatEnvironments();