Personal tools
You are here: Home Forum Use Display problem with the module help of Salome 5.1.3

Display problem with the module help of Salome 5.1.3

Up to Use

Display problem with the module help of Salome 5.1.3

Posted by Nicolas Merlette at January 28. 2010

Dears users,

I installed Salome 5.1.3 using 64 bits binaries on Ubuntu 8.04.3 LTS.

The problem is that the module help does not appear when I use the panel menu Help / Module Help / ...

The Salome preferences have been modified in order to change the External Browser (/usr/bin/firefox instead of mozilla). I tried other browsers as konqueror without success. When I use gedit instead of a web browser, it opens the html help files. I do not understand why it does not work with a web browser.

Thank you in advance for your help,

Nicolas Merlette

Re: Display problem with the module help of Salome 5.1.3

Posted by DAVID Gilles at January 28. 2010

Hello Nicolas,

The preferences of salome are stored in the file ~/.SalomeApprc.5.1.3.

Open this file in a text editor and check the section ExternalBrowser :

 <section name="ExternalBrowser" >
  <parameter value="" name="parameters" />
  <parameter value="/usr/bin/firefox" name="application" />
 </section>

If you don't have "/usr/bin/firefox", then modify the file accordingly.

Regards,

Gilles

Re: Display problem with the module help of Salome 5.1.3

Posted by Nicolas Merlette at January 28. 2010

Dear Gilles

 

When I edit the file ~/.SalomeApprc.5.1.3., the ExternalBrowser is:

 

<section name="ExternalBrowser" >

  <parameter value="" name="parameters" />

  <parameter value="/usr/bin/firefox" name="application" />

 </section>

 

It is what I entered using the Preferences menu of Salome.

When I click on the Menu Help modules, nothing appears. No error message. If I put "/usr/bin/gedit" as the ExternalBrowser, gedit will edit the html files when I will click on the Menu Help modules.

Crazy!!!

 

In addition, I can open the html files if I enter in a terminal:

"/usr/bin/firefox ~/Salome_5.1.3/SALOME5/V5_1_3/KERNEL_V5_1_3/share/doc/salome/gui/KERNEL/index.html"

 

Do you have an idea?

 

Best regards,

 

Nicolas Merlette

 

Re: Display problem with the module help of Salome 5.1.3

Posted by DAVID Gilles at January 28. 2010

OK I have an idea. I understand that you installed Salome using the universal package.

If so, when Salome is launched, the environment is modified; in particularly the PATH and LD_LIBRARY_PATH environment variables:

PATH: [SALOME_INSTALL_DIR]/SALOME5/Prerequis/etchForSalome/bin:$PATH

LD_LIBRARY_PATH: [SALOME_INSTALL_DIR]/SALOME5/Prerequis/etchForSalome/lib:$LD_LIBRARY_PATH

I think this might cause problem to the call of /usr/bin/firefox.

Try this: create a file launchFirefox.sh in your home directory and write this:

 

#!/usr/bin/env bash

export PATH=/bin;/usr/bin

export LD_LIBRARY_PATH=/lib;/usr/lib

/usr/bin/firefox

 

Make this file executable (chmod +x launchFirefox.sh) and select this file as the script to launch for the help browser (in the preferences or in the ~/.SalomeApprc.5.1.3 file) :

 

<section name="ExternalBrowser" >

  <parameter value="" name="parameters" />

  <parameter value="$HOME/launchFirefox.sh" name="application" />

 </section>

 

Maybe you should replace $HOME with the real path. Then try to launch a help page from a new Salome session.

I will search more tomorrow if it does not work.

If it works, we will modify the universal archive to make an external browser work without this trick.

 

Regards,

Gilles

Re: Display problem with the module help of Salome 5.1.3

Posted by Nicolas Merlette at January 29. 2010

Dear Gilles,

 

I did what you proposed. It allows me to launch Firefox from Salome, BUT it does not open the html help files. For instance, when I click on Help -> Module Help -> KERNEL Help, Firefox window appears with the Ubuntu HomePage.

I think we are not so far to the solution. Do you have an idea to progress?

Best regards,

 

Nicolas Merlette

Re: Display problem with the module help of Salome 5.1.3

Posted by DAVID Gilles at January 29. 2010

Hi Nicolas,

Replace

/usr/bin/firefox

by

/usr/bin/firefox $1

Then it should work.

 

Regards,

Gilles

SOLUTION to Display problem with the module help of Salome 5.1.3

Posted by Nicolas Merlette at February 01. 2010

Dear Gilles.

This was the solution to my problem. Now, it works!

Thank you very much for your help.

Best regards,

Nicolas Merlette

Re: Display problem with the module help of Salome 5.1.3

Posted by Waluyo Adi Siswanto at May 10. 2010

I have a similar problem (install Salome-meca 2010.1) in Ubuntu 10.04.

I have followed the instruction above, nothing appears (no errors appeared)

Could you please help me to have Help Module functioning.

Thanks

Re: Display problem with the module help of Salome 5.1.3

Posted by Paul McGrath at May 18. 2010

Previously Waluyo Adi Siswanto wrote:

I have a similar problem (install Salome-meca 2010.1) in Ubuntu 10.04.

I have followed the instruction above, nothing appears (no errors appeared)

Could you please help me to have Help Module functioning.

Thanks

I added "$HOME//launchFirefox.sh" to the external browser->application field and the solution above worked perfectly.

Re: Display problem with the module help of Salome 5.1.3

Posted by Waluyo Adi Siswanto at August 17. 2010

Actually I cannot open the module help

if i change the launchFirefox.sh  to gedit, it opens the index.html

 

#!/usr/bin/env bash

export PATH=/bin;/usr/bin

export LD_LIBRARY_PATH=/lib;/usr/lib

/usr/bin/gedit $1

 

How I can open in firefox? I am really confuse

from terminal I can open the firefox (/usr/bin/firefox) properly

 

Could anyone help me..

 

Waluyo

Re: Display problem with the module help of Salome 5.1.3

Posted by Torben at November 21. 2010

I had a similar problem. Inspired by the contribution of Gilles I  now use this small script to launch the browser from Salomé:

 

#!/usr/bin/env bash

export LD_LIBRARY_PATH=/lib:/usr/lib

epiphany $1

 

Substitute "epiphany" with the browser of your liking. Be aware that the character separating the directory names in the LD_LIBRARY_PATH is a colon.

Re: Display problem with the module help of Salome 5.1.3

Posted by Waluyo Adi Siswanto at March 30. 2011

Thank you Torben

Your script really works (Ubuntu 10.10),

but in my case: firefox $1

Re: Display problem with the module help of Salome 5.1.3

Posted by annier at September 10. 2013

Previously DAVID Gilles wrote:

Hi Nicolas,

Replace

/usr/bin/firefox

by

/usr/bin/firefox $1

Then it should work.

 

Regards,

Gilles

Thank you

Posted by annier at September 10. 2013

Previously DAVID Gilles wrote:

Hi Nicolas,

Replace

/usr/bin/firefox

by

/usr/bin/firefox $1

Then it should work.

 

Regards,

Gilles

Re: Display problem with the module help of Salome 5.1.3

Posted by annier at September 10. 2013

Thank you very much for the information.

Previously annier wrote:

Previously DAVID Gilles wrote:

Hi Nicolas,

Replace

/usr/bin/firefox

by

/usr/bin/firefox $1

Then it should work.

 

Regards,

Gilles

 

 

Re: Display problem with the module help of Salome 5.1.3

Posted by annier at September 10. 2013

i read the information provided in this forum page and it was very helpful for me. i want to express my sincere thanks to all the persons involved in this discussion .

Previously DAVID Gilles wrote:

Hi Nicolas,

Replace

/usr/bin/firefox

by

/usr/bin/firefox $1

Then it should work.

 

Regards,

Gilles

 

Re: Display problem with the module help of Salome 5.1.3

Posted by annier at September 10. 2013

i want to express my thanks to all the persons involved in this discussion regarding the HELP module.

Re: Display problem with the module help of Salome 5.1.3

Posted by suneel at May 28. 2017

Thank you all for your discussion on the issue, the discussion helped me to solve the problem.

Powered by Ploneboard
Document Actions