]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Avoid sigegv at exit due to pyqt5.15
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 23 Jun 2021 11:34:52 +0000 (13:34 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 23 Jun 2021 11:34:52 +0000 (13:34 +0200)
src/Session/salome2810.cxx

index ec9f80443c0bf86367915f1dbea9b23b3f36fd9d..9f0c2999f44da3e6055b99d940afb87a98404ead 100644 (file)
@@ -27,6 +27,7 @@ int main(int argc, char *argv[])
 {
   constexpr char MAIN_PROGRAM[] = "SALOME_Session_Server_No_Server";
   constexpr char NO_SERVER_ENV_VAR[] = "SALOME_EMB_SERVANT";
+  constexpr char PYQT5_NOT_MASTER[] = "PYQT5_NOT_MASTER";
 #ifndef WIN32
   const char *MODULES[]={"SHAPERSTUDY","GEOM","SMESH","YACS","HYBRIDPLUGIN","GHS3DPLUGIN","BLSURFPLUGIN","GMSHPLUGIN","HEXABLOCKPLUGIN","HEXOTICPLUGIN","GHS3DPRLPLUGIN","NETGENPLUGIN"};
   const char *MODULES_PATH[]={"GUI","SHAPER","SHAPERSTUDY","GEOM","SMESH","YACS","HYBRIDPLUGIN","GHS3DPLUGIN","BLSURFPLUGIN","GMSHPLUGIN","HEXABLOCKPLUGIN","GHS3DPRLPLUGIN","NETGENPLUGIN"};
@@ -52,6 +53,7 @@ int main(int argc, char *argv[])
   pe.insert(APPCONFIG,appconfig_val);
   //tells shutup to salome.salome_init invoked at shaper engine ignition
   pe.insert(NO_SERVER_ENV_VAR,"1");
+  pe.insert(PYQT5_NOT_MASTER,"1");
   //resource file retrieve
   QString resfile;
   {