From 837f6d0af3faa0ac086762d0eefc3fc4ec3d9b37 Mon Sep 17 00:00:00 2001 From: Nav Date: Sat, 1 Apr 2023 12:30:09 +0100 Subject: [PATCH] Fixed bug with CLion management detection (where Bloom failed to detect CLion 2023.1 managing its process) --- src/Services/ProcessService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Services/ProcessService.cpp b/src/Services/ProcessService.cpp index c660804b..400ed9ea 100644 --- a/src/Services/ProcessService.cpp +++ b/src/Services/ProcessService.cpp @@ -59,9 +59,9 @@ namespace Bloom::Services auto pid = processInfo->ppid; 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; return true; }