]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Pascale Noyret: made the doc reading of Yams working on all systems (default system...
authorrnc <rnc@opencascade.com>
Fri, 23 Nov 2012 14:22:29 +0000 (14:22 +0000)
committerrnc <rnc@opencascade.com>
Fri, 23 Nov 2012 14:22:29 +0000 (14:22 +0000)
src/Tools/YamsPlug/monYamsPlugDialog.py

index 6d293f6f3c0063a5ac676ee9df90cdefc6f14da2..c92765d78c8c7b739a31766545cd43d2d4581d5e 100644 (file)
@@ -64,15 +64,12 @@ class MonYamsPlugDialog(Ui_YamsPlugDialog,QWidget):
           maDoc=os.environ['DISTENE_YAMS_DOC_PDF']
         except Exception:
           QMessageBox.warning( self, "Help unavailable", str(maDoc) + " not found")
-        try :  
-          commande='kpdf '+maDoc
-          os.system (commande)
-        except Exception:
-          old_ld=os.getenv("LD_LIBRARY_PATH")
-          command="unset LD_LIBRARY_PATH;"
-          command+="okular "+maDoc+";"
-          command+="export LD_LIBRARY_PATH=%s"%old_ld
-          os.system(command)
+        old_ld=os.getenv("LD_LIBRARY_PATH")
+        command="unset LD_LIBRARY_PATH;"
+        command+="xdg-open "+maDoc+";"
+        command+="export LD_LIBRARY_PATH=%s"%old_ld
+        os.system(command)
+
 
   def PBOKPressed(self):
         if not(self.PrepareLigneCommande()) : return