Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemco Burema <r.burema@ultimaker.com>2022-01-11 11:20:57 +0300
committerRemco Burema <r.burema@ultimaker.com>2022-01-11 11:20:57 +0300
commit03376b3df2e2958c3db91ff6d050e3ab6ba57c80 (patch)
treed0d05f6e802ca4ed3cf5f94a10386e71eefd0dad
parentc849cf8e8865998487e2b5ba613dda2705767960 (diff)
Does need the env-var on Linux.
But we need it opn platforms we might release an Enterprise edition for. Fortunately, Linux is not one of those platforms, so it all works out anyway. CURA-8475
-rwxr-xr-xcura_app.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cura_app.py b/cura_app.py
index 0a63db9376..c96e4ba48e 100755
--- a/cura_app.py
+++ b/cura_app.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
-# Copyright (c) 2020 Ultimaker B.V.
+# Copyright (c) 2022 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
# Remove the working directory from sys.path.
@@ -15,7 +15,8 @@ if "" in sys.path:
import argparse
import faulthandler
import os
-os.environ["QT_PLUGIN_PATH"] = "" # Security workaround: Don't need it, and introduces an attack vector, so set to nul.
+if sys.platform != "linux": # Turns out the Linux build _does_ use this, but we're not making an Enterprise release for that system anyway.
+ os.environ["QT_PLUGIN_PATH"] = "" # Security workaround: Don't need it, and introduces an attack vector, so set to nul.
from PyQt5.QtNetwork import QSslConfiguration, QSslSocket