Use qputenv but set value to 0

This commit is contained in:
Dag Heyman 2017-03-16 12:42:32 +01:00
parent 4544ae37cf
commit 8ffc1c76a2
No known key found for this signature in database
GPG Key ID: 06FC004369E7D338

View File

@ -14,7 +14,8 @@ int main(int argc, char *argv[])
// Global menubar is broken for qt5 apps in Ubuntu Unity, see:
// https://bugs.launchpad.net/ubuntu/+source/appmenu-qt5/+bug/1323853
// This workaround enables a local menubar.
setenv("UBUNTU_MENUPROXY","0",1);
qputenv("UBUNTU_MENUPROXY","0");
qputenv("PYTHONDONTWRITEBYTECODE", "1");
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
@ -58,7 +59,6 @@ int main(int argc, char *argv[])
engine.rootContext()->setContextProperty("appVersion", APP_VERSION);
engine.rootContext()->setContextProperty("ScreenShot", &screenshot);
qputenv("PYTHONDONTWRITEBYTECODE", "1");