From 66850dfe885562cf966ff306905749c7d82d2629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Sun, 19 Nov 2023 18:33:44 +0100 Subject: [PATCH] Force XCB on Linux #98 --- src/app/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index 3ffcd881b..fc56b78b3 100755 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -90,6 +90,11 @@ void generateAlphaMesh(QPixmap& alphaMesh, int main(int argc, char *argv[]) { +#ifdef Q_OS_LINUX + // Force XCB on Linux + qputenv("QT_QPA_PLATFORM", "xcb"); +#endif + std::cout << QString("%1 %2 - %3").arg(AppSupport::getAppDisplayName(), AppSupport::getAppVersion(), AppSupport::getAppUrl()).toStdString() << std::endl << "---" << std::endl;