From: 조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 Date: Thu, 24 Sep 2020 07:51:59 +0000 (+0900) Subject: Remove unnecessary command name changing code (#284) X-Git-Tag: accepted/tizen/unified/20200925.054823~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=951f5dfc6d043d7b90d767193d9f4fcbf5e6d9c4;p=platform%2Fcore%2Fdotnet%2Flauncher.git Remove unnecessary command name changing code (#284) Because executable name for nui loader is changed to dotnet-nui-loader, there is no need to change command name for candidate process. Additionally, add apptype to extra for dotnet-nui loader. --- diff --git a/NativeLauncher/dotnet-nui.loader b/NativeLauncher/dotnet-nui.loader index 4dd4d9a..7e714cd 100644 --- a/NativeLauncher/dotnet-nui.loader +++ b/NativeLauncher/dotnet-nui.loader @@ -6,4 +6,5 @@ DETECTION_METHOD TIMEOUT|DEMAND TIMEOUT 5000 ON_BOOT OFF HYDRA OFF +EXTRA --appType dotnet-nui EXTRA TIZEN_UIFW NUI diff --git a/NativeLauncher/launcher/exec/loader.cc b/NativeLauncher/launcher/exec/loader.cc index 08505ff..e7e1a76 100644 --- a/NativeLauncher/launcher/exec/loader.cc +++ b/NativeLauncher/launcher/exec/loader.cc @@ -123,20 +123,12 @@ static void __loader_create_cb(bundle *extra, int type, void *user_data) } char *uifw = NULL; - char const *cmdName = "dotnet-loader"; - bundle_get_str(extra, KEY_TIZEN_UIFW, &uifw); if (uifw != NULL) { setenv(KEY_TIZEN_UIFW, uifw, 1); _INFO("TIZEN_UIFW is set to %s", uifw); - - if (strcmp(uifw, "NUI") == 0) { - cmdName = "nui-loader"; - } } - setCmdName(cmdName); - // initialize CoreRuntime (launchmode, dlog redirection enable, root path NULL) if (CoreRuntime::initialize(appType ? appType : "dotnet", LaunchMode::loader) != 0) { _ERR("Failed to initialized");