From 37cf78487ef8a433239ff2ade03f9ea97ecbf2ea Mon Sep 17 00:00:00 2001 From: Thomas Karl Pietrowski Date: Sat, 9 Dec 2017 15:56:52 +0100 Subject: [PATCH] headless+invidible: It is all about being hidden So don't show any gui. --- cura/CuraApplication.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index db03d7440a..f0bdcff3e3 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -729,11 +729,11 @@ class CuraApplication(QtApplication): self.setMainQml(Resources.getPath(self.ResourceTypes.QmlFiles, "Cura.qml")) self._qml_import_paths.append(Resources.getPath(self.ResourceTypes.QmlFiles)) - run_headless = self.getCommandLineOption("headless", False) - if not run_headless: + run_without_gui = self.getCommandLineOption("headless", False) or self.getCommandLineOption("headless", False) + if not run_without_gui: self.initializeEngine() - if run_headless or self._engine.rootObjects: + if run_without_gui or self._engine.rootObjects: self.closeSplash() for file_name in self.getCommandLineOption("file", []):