* @brief Resolves a system tool to an absolute path, falling back to its bare name. */
| 38 | * @brief Resolves a system tool to an absolute path, falling back to its bare name. |
| 39 | */ |
| 40 | static QString resolveSystemTool(const QStringList& candidates, const QString& fallbackName) |
| 41 | { |
| 42 | for (const auto& path : candidates) { |
| 43 | QFileInfo info(path); |
| 44 | if (info.exists() && info.isExecutable()) |
| 45 | return path; |
| 46 | } |
| 47 | |
| 48 | return fallbackName; |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * @brief Waits for a fingerprint helper, killing it if it wedges; the timeout |
no test coverage detected