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