MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / isAppAlreadyRunning

Function isAppAlreadyRunning

src/client/client-common/utils/linuxutils.cpp:82–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82bool isAppAlreadyRunning()
83{
84 // Look for process containing the product name -- exclude grep and Engine
85 QString cmd = "ps axco command | grep " WS_APP_EXECUTABLE_NAME " | grep -v grep";
86#ifdef WS_IS_WINDSCRIBE
87 cmd += " | grep -v " WS_APP_IDENTIFIER "Engine"; // Exclude older 1.x engine process
88#endif
89 if (strlen(WS_CLI_EXECUTABLE_NAME) > 0)
90 cmd += " | grep -v " WS_CLI_EXECUTABLE_NAME;
91 QString response = Utils::execCmd(cmd);
92 return response.trimmed() != "";
93}
94
95QMap<QString, QString> enumerateInstalledPrograms()
96{

Callers 2

isAppAlreadyRunningMethod · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected