From 662ddeeda3419f5378e04bc139d7be56d99e6286 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Tue, 30 Oct 2018 15:58:23 +0000 Subject: [PATCH] [Launcher] Check for if it isn't mingw instead of checking for linux. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b01ae35..8d2ba77 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -14,7 +14,7 @@ int main( int argc, char *argv[] ) { -#ifdef __linux__ +#ifndef __MINGW32__ setenv("QT_QPA_PLATFORMTHEME", "gtk3", 0); setenv("QT_QUICK_CONTROLS_STYLE","Desktop",1); #endif @@ -38,7 +38,7 @@ int main( int argc, char *argv[] ) QProcess dpms; dpms.start("xset", QStringList() << "-dpms"); -#ifdef __linux__ +#ifndef __MINGW32__ QString newpath = QProcessEnvironment::systemEnvironment().value("APPDIR", "") + "/usr/bin:" + QProcessEnvironment::systemEnvironment().value("PATH", ""); qDebug() << newpath; setenv("PATH", newpath.toUtf8().constData(), 1);