[Launcher] Check for if it isn't mingw instead of checking for linux.
This commit is contained in:
parent
f9ff4d03cd
commit
662ddeeda3
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
int main( int argc, char *argv[] )
|
int main( int argc, char *argv[] )
|
||||||
{
|
{
|
||||||
#ifdef __linux__
|
#ifndef __MINGW32__
|
||||||
setenv("QT_QPA_PLATFORMTHEME", "gtk3", 0);
|
setenv("QT_QPA_PLATFORMTHEME", "gtk3", 0);
|
||||||
setenv("QT_QUICK_CONTROLS_STYLE","Desktop",1);
|
setenv("QT_QUICK_CONTROLS_STYLE","Desktop",1);
|
||||||
#endif
|
#endif
|
||||||
|
@ -38,7 +38,7 @@ int main( int argc, char *argv[] )
|
||||||
QProcess dpms;
|
QProcess dpms;
|
||||||
dpms.start("xset", QStringList() << "-dpms");
|
dpms.start("xset", QStringList() << "-dpms");
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifndef __MINGW32__
|
||||||
QString newpath = QProcessEnvironment::systemEnvironment().value("APPDIR", "") + "/usr/bin:" + QProcessEnvironment::systemEnvironment().value("PATH", "");
|
QString newpath = QProcessEnvironment::systemEnvironment().value("APPDIR", "") + "/usr/bin:" + QProcessEnvironment::systemEnvironment().value("PATH", "");
|
||||||
qDebug() << newpath;
|
qDebug() << newpath;
|
||||||
setenv("PATH", newpath.toUtf8().constData(), 1);
|
setenv("PATH", newpath.toUtf8().constData(), 1);
|
||||||
|
|
Loading…
Reference in a new issue