| 761 | } |
| 762 | |
| 763 | QString ResolveExecutable(QString path) |
| 764 | { |
| 765 | if (path.isEmpty()) { |
| 766 | return QString(); |
| 767 | } |
| 768 | if (!path.contains('/')) { |
| 769 | path = QStandardPaths::findExecutable(path); |
| 770 | } |
| 771 | QFileInfo pathInfo(path); |
| 772 | if (!pathInfo.exists() || !pathInfo.isExecutable()) { |
| 773 | return QString(); |
| 774 | } |
| 775 | return pathInfo.absoluteFilePath(); |
| 776 | } |
| 777 | |
| 778 | /** |
| 779 | * Normalize path |
no test coverage detected