Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
[Linux] Override the default QPA platform plugin
Browse files Browse the repository at this point in the history
Issue ##14061
  • Loading branch information
vitallium authored and ariya committed Nov 29, 2019
1 parent 77e1fb9 commit 88383c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@

static int inner_main(int argc, char** argv)
{
#ifdef Q_OS_LINUX
// override default Qt platform plugin
qputenv("QT_QPA_PLATFORM", "offscreen");
#endif

QApplication app(argc, argv);

app.setWindowIcon(QIcon(":/phantomjs-icon.png"));
Expand Down

0 comments on commit 88383c6

Please sign in to comment.