Skip to content

Commit

Permalink
Attempt to detect if client is running in a Vmware to disable graphic…
Browse files Browse the repository at this point in the history
… acceleration.

There has been reports of the client crashing in a VMware starting with
3.15.0 due to the client's use of graphic acceleration.

Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Dec 19, 2024
1 parent 14c2ff5 commit 76a265c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ Application::Application(int &argc, char **argv)
// Ensure OpenSSL config file is only loaded from app directory
QString opensslConf = QCoreApplication::applicationDirPath() + QString("/openssl.cnf");
qputenv("OPENSSL_CONF", opensslConf.toLocal8Bit());

if (QProcessEnvironment::systemEnvironment().contains(QStringLiteral("VMWARE"))) {
QProcessEnvironment::systemEnvironment().insert(QStringLiteral("SVGA_ALLOW_LLVMPIPE"), 0);
}
#endif

// TODO: Can't set this without breaking current config paths
Expand Down

0 comments on commit 76a265c

Please sign in to comment.