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

---
 app/src/main.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/src/main.cpp b/app/src/main.cpp
index 3996f62..ddfbbdf 100644
--- a/app/src/main.cpp
+++ b/app/src/main.cpp
@@ -14,14 +14,14 @@
 int main(int argc, char *argv[])
 {
     // Init
-    auto appDirPath = QGuiApplication::applicationDirPath();
+    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());
     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);
     auto appConfigApplication = configHandler->getAppConfigApplication();
 
-- 
GitLab