From 16fd35165951553f66d057490c33c92ea4f030b3 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Sat, 19 Feb 2022 07:42:23 +0100 Subject: [PATCH] Start of management of foreground in SSL context --- src/SalomeApp/salome_pluginsmanager.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SalomeApp/salome_pluginsmanager.py b/src/SalomeApp/salome_pluginsmanager.py index 25276d441..94dcfe75d 100644 --- a/src/SalomeApp/salome_pluginsmanager.py +++ b/src/SalomeApp/salome_pluginsmanager.py @@ -244,8 +244,13 @@ class PluginsManager: def importPlugins(self): """Execute the salome_plugins file that contains plugins definition """ + ior_fake_ns = None + prefix_ior = "--iorfakens=" + presence_ior = [elt for elt in QApplication.arguments() if elt[:len(prefix_ior)]==prefix_ior] + if any(presence_ior): + ior_fake_ns = presence_ior[-1][len(prefix_ior):] if self.lasttime ==0 or salome.myStudy == None: - salome.salome_init(embedded=True) + salome.salome_init(embedded=True,iorfakensfile=ior_fake_ns) lasttime=0 -- 2.39.2