Support UI Thread Separate (UTS) App Model (#464)
[platform/core/dotnet/launcher.git] / NativeLauncher / launcher / exec / launcher.cc
index d7cc8e6..2ef357f 100644 (file)
@@ -42,6 +42,7 @@ static std::string PaddingOption("--PADDING_TO_CHANGE_CMDLINE_PADDING_TO_CHANGE_
 static std::string AppTypeOption("--appType");
 static std::string UIFWOption(KEY_TIZEN_UIFW);
 static std::string ProfileOption("--profile");
+static std::string UTSOption("TIZEN_UI_THREAD");
 static std::string GlobalizationInvariantOption("--invariant");
 
 int main(int argc, char *argv[])
@@ -90,6 +91,9 @@ int main(int argc, char *argv[])
                        }
                        i++;
                        UIFWType = argv[i];
+               } else if (UTSOption.compare(argv[i]) == 0) {
+                       setenv("TIZEN_UI_THREAD", "true", 1);
+                       _INFO("TIZEN_UI_THREAD is set");
                } else {
                        vargs.push_back(argv[i]);
                }