Print

Print


On Tue, 18 Sep 2007, Jeremy Craven wrote:

> Does anyone else encounter problems with web browser choices in 
> analysis/format converter ?

I don't but...

> On my setup when I start up analysis, the choices for the web browser are 
> mozilla and firefox (in that order).

On my RedHat EL 3 I get that and on Fedora 4/6 I get a wider choice with 
"htmlview" as the default.

> I actually regularly use firefox (thinking it may be more compatible with the 
> rest of the world and our University policies), but mozilla has an html 
> editor in it.
>
> So I switch it to firefox. But if I go to format converter (fired up from 
> within analysis) there is no option to set, and it tries to fire up mozilla. 
> Just now on the first call to "help" that did work, but on the second time 
> the URL was "-raise" and mozilla gave the error that "www.-raise.com could 
> not be found".
>
> Just trying again with analysis restarted and leaving the browser as mozilla, 
> then I get the "-raise" problem (seemingly regardless of whether mozilla was 
> already running or not, which did not seem to be the behaviour in 
> formatConverter).

I managed to catch the call to mozilla on my RHEL box (ps -ef | grep 
<username> | grep mozilla;  shortly after hitting a help button) and it is 
coming out as e.g.

/bin/sh /usr/bin/mozilla -raise -remote openURL(file:/usr/local/ccpnmr/ccpnmr1.0/doc/ccpnmr/analysis/EditMolSystemsPopup.html)

as far as I can see the -raise is not generated by CCPN code so must come 
from the python html viewer handling code.

I can't find any documentation for a -raise command line option for 
mozilla, but it doesn't seem to cause a problem to my mozilla or firefox 
versions.  My guess is that it usually gets thrown away by 
mozilla/firefox.  Which particular mozilla/firefox are you using?

> I have also previously had the case (that I cannot now replicate) that the 
> browser fired up, but took me to my home page, but that pressing "back" got 
> me to the required help info).

I get similar, but different behaviour if e.g. firefox is set as the help 
viewer but isn't already running - first a window appears showing my 
homepage and then one with the appropriate help module.  Looking at the 
horrendous firefox startup script, I would say that this is a problem on 
the browser side, not on the analysis side!  The "htmlview" script that 
Fedora distros seem to default to appear to do a good job of cleaning up 
the command (the -raise seems to get binned too) so that firefox fires up 
showing just what you want.  Might be worth looking at htmlview and 
setting a .htmlviewrc or whatever on your CentOS?

Brian

-- 
Dr. Brian O. Smith ---------------------- B Smith at bio gla ac uk
           Division of Biochemistry & Molecular Biology,
               Institute Biomedical & Life Sciences,
Joseph Black Building, University of Glasgow, Glasgow G12 8QQ, UK.
Tel: 0141 330 5167/6459/3089                    Fax: 0141 330 8640