mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-09 19:32:03 +02:00
force -platform xcb on linux
This commit is contained in:
parent
1b07cdad1c
commit
74233bf459
4
main.cpp
4
main.cpp
@ -92,6 +92,10 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// disable "QApplication: invalid style override passed" warning
|
// disable "QApplication: invalid style override passed" warning
|
||||||
if (isDesktop) putenv((char*)"QT_STYLE_OVERRIDE=fusion");
|
if (isDesktop) putenv((char*)"QT_STYLE_OVERRIDE=fusion");
|
||||||
|
#ifdef Q_OS_LINUX
|
||||||
|
// force platform xcb
|
||||||
|
if (isDesktop) putenv((char*)"QT_QPA_PLATFORM=xcb");
|
||||||
|
#endif
|
||||||
|
|
||||||
// // Enable high DPI scaling on windows & linux
|
// // Enable high DPI scaling on windows & linux
|
||||||
//#if !defined(Q_OS_ANDROID) && QT_VERSION >= 0x050600
|
//#if !defined(Q_OS_ANDROID) && QT_VERSION >= 0x050600
|
||||||
|
Loading…
Reference in New Issue
Block a user