mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-24 03:06:45 +03:00
Use qputenv but set value to 0
This commit is contained in:
parent
4544ae37cf
commit
8ffc1c76a2
4
main.cpp
4
main.cpp
@ -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");
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user