1
0
Fork 0

[Launcher] Change ifdef from UNIX to __linux__.

This commit is contained in:
Kitteh 2018-10-30 15:54:17 +00:00
parent 58d40b264f
commit f9ff4d03cd

View file

@ -14,7 +14,7 @@
int main( int argc, char *argv[] ) int main( int argc, char *argv[] )
{ {
#ifdef UNIX #ifdef __linux__
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 UNIX #ifdef __linux__
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);