From 433f01470cff4c5f67463e1da8560da9b11254f9 Mon Sep 17 00:00:00 2001
From: Akira Ohgaki <akiraohgaki@gmail.com>
Date: Sat, 27 Jan 2018 16:29:16 +0900
Subject: [PATCH] Debugging

---
 app/src/main.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app/src/main.cpp b/app/src/main.cpp
index bee9a2e..3996f62 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);
-- 
GitLab