From e430c6ace7708c84d5b33113d1901c68cb3edf9d Mon Sep 17 00:00:00 2001 From: Woongsuk Cho Date: Fri, 8 Nov 2019 15:03:46 +0900 Subject: [PATCH] change candidate process name to dotnet-launcher --- NativeLauncher/launcher/main.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NativeLauncher/launcher/main.cc b/NativeLauncher/launcher/main.cc index 34517ff..4e2222d 100644 --- a/NativeLauncher/launcher/main.cc +++ b/NativeLauncher/launcher/main.cc @@ -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"); -- 2.7.4