change candidate process name to dotnet-launcher accepted/tizen/5.5/unified/20191111.105448 accepted/tizen/unified/20191111.105536 submit/tizen/20191111.004932 submit/tizen_5.5/20191111.005001
authorWoongsuk Cho <ws77.cho@samsung.com>
Fri, 8 Nov 2019 06:03:46 +0000 (15:03 +0900)
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>
Mon, 11 Nov 2019 00:35:12 +0000 (09:35 +0900)
NativeLauncher/launcher/main.cc

index 34517ff..4e2222d 100644 (file)
@@ -127,6 +127,12 @@ extern "C" int realMain(int argc, char *argv[], const char* mode)
                        return 1;
                }
        } else {
+               // change cmdline from dotnet-hydra-launcher to dotnet-launcher
+               if (strcmp(argv[0], "/usr/bin/dotnet-hydra-launcher") == 0) {
+                       memset(argv[0], '\0', strlen("/usr/bin/dotnet-hydra-launcher"));
+                       snprintf(argv[0], strlen("/usr/bin/dotnet-launcher") + 1, "/usr/bin/dotnet-launcher");
+               }
+
                Launchpad.onCreate = [&runtime]() {
                        if (runtime->initialize(false) != 0)
                                _ERR("Failed to initialized");