diff --git a/app/src/main.cpp b/app/src/main.cpp index bee9a2e5d01acb0122b332cb358a476e252188da..3996f620436165673344f11039293674e02a00e1 100644 --- a/app/src/main.cpp +++ b/app/src/main.cpp @@ -14,9 +14,12 @@ int main(int argc, char *argv[]) { // Init - auto envPath = QGuiApplication::applicationDirPath() + ":" + QString::fromLocal8Bit(qgetenv("PATH").constData()); + auto appDirPath = QGuiApplication::applicationDirPath(); + auto envPath = appDirPath + ":" + appDirPath + "/usr/bin:" + QString::fromLocal8Bit(qgetenv("PATH").constData()); qputenv("PATH", envPath.toUtf8().constData()); + qDebug() << QString::fromLocal8Bit(qgetenv("PATH").constData()); + QGuiApplication app(argc, argv); // This is backend program, but need GUI module auto *configHandler = new ConfigHandler(&app);