From a8f8c00cdceebf66c7badff07bcc40fc4cc41a7b Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Sat, 27 Jan 2018 15:42:41 +0900 Subject: [PATCH] Set $PATH --- app/src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main.cpp b/app/src/main.cpp index 8dca232..bee9a2e 100644 --- a/app/src/main.cpp +++ b/app/src/main.cpp @@ -14,6 +14,9 @@ int main(int argc, char *argv[]) { // Init + auto envPath = QGuiApplication::applicationDirPath() + ":" + QString::fromLocal8Bit(qgetenv("PATH").constData()); + qputenv("PATH", envPath.toUtf8().constData()); + QGuiApplication app(argc, argv); // This is backend program, but need GUI module auto *configHandler = new ConfigHandler(&app); -- GitLab