Fixed bug with CLion management detection (where Bloom failed to detect CLion 2023.1 managing its process)

This commit is contained in:
Nav
2023-04-01 12:30:09 +01:00
parent 5bbcf3be50
commit 837f6d0af3

View File

@@ -59,9 +59,9 @@ namespace Bloom::Services
auto pid = processInfo->ppid; auto pid = processInfo->ppid;
while (const auto processInfo = ProcessService::getProcessInfo(pid)) { while (const auto processInfo = ProcessService::getProcessInfo(pid)) {
const auto commandLine = std::string(processInfo->cmd); const auto commandLine = std::string(*(processInfo->cmdline));
if (commandLine.find("clion.sh") != std::string::npos) { if (commandLine.find("clion") != std::string::npos) {
cachedResultsByProcessId[*processId] = true; cachedResultsByProcessId[*processId] = true;
return true; return true;
} }