diff --git a/main.cpp b/main.cpp index 5cd4f5e..8a806a0 100644 --- a/main.cpp +++ b/main.cpp @@ -53,6 +53,7 @@ #ifndef QT_NO_SYSTEMTRAYICON #include +#include #include "window.h" int main(int argc, char *argv[]) @@ -71,6 +72,13 @@ int main(int argc, char *argv[]) "on this system.")); return 1; } + QString program = QStandardPaths::findExecutable("limactl"); + if (program.isEmpty()) { + QMessageBox::critical(0, QObject::tr("Lima"), + QObject::tr("I couldn't find limactl in PATH " + "on this system.")); + return 1; + } QApplication::setQuitOnLastWindowClosed(false); Window window;