| 80 | } |
| 81 | |
| 82 | bool 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 | |
| 95 | QMap<QString, QString> enumerateInstalledPrograms() |
| 96 | { |
no outgoing calls
no test coverage detected