mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 18:35:53 +08:00
Reset LD_PRELOAD environment variable before calling plugin
CURA-12091
This commit is contained in:
parent
40400b2be2
commit
79ad3e70ee
@ -95,8 +95,8 @@ class BackendPlugin(AdditionalSettingDefinitionsAppender, PluginObject):
|
|||||||
popen_kwargs["creationflags"] = subprocess.CREATE_NO_WINDOW
|
popen_kwargs["creationflags"] = subprocess.CREATE_NO_WINDOW
|
||||||
|
|
||||||
plugin_env = os.environ
|
plugin_env = os.environ
|
||||||
if "APPRUN_RUNTIME" in plugin_env and "APPRUN_ORIGINAL_APPRUN_RUNTIME" in plugin_env:
|
if "LD_PRELOAD" in plugin_env and "APPRUN_ORIGINAL_LD_PRELOAD" in plugin_env:
|
||||||
plugin_env["APPRUN_RUNTIME"] = plugin_env["APPRUN_ORIGINAL_APPRUN_RUNTIME"]
|
plugin_env["LD_PRELOAD"] = plugin_env["APPRUN_ORIGINAL_LD_PRELOAD"]
|
||||||
|
|
||||||
Logger.info(plugin_env)
|
Logger.info(plugin_env)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user