Skip to content

Commit

Permalink
Force XCB on Linux #98
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Nov 19, 2023
1 parent 42ea912 commit 66850df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 66850df

Please sign in to comment.