Remove unnecessary command name changing code (#284)
author조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Thu, 24 Sep 2020 07:51:59 +0000 (16:51 +0900)
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>
Thu, 24 Sep 2020 07:51:59 +0000 (16:51 +0900)
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.

NativeLauncher/dotnet-nui.loader
NativeLauncher/launcher/exec/loader.cc

index 4dd4d9a..7e714cd 100644 (file)
@@ -6,4 +6,5 @@ DETECTION_METHOD       TIMEOUT|DEMAND
 TIMEOUT                5000
 ON_BOOT                OFF
 HYDRA                  OFF
+EXTRA                  --appType               dotnet-nui
 EXTRA                  TIZEN_UIFW              NUI
index 08505ff..e7e1a76 100644 (file)
@@ -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");