Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
[Backport to 1.9]
Browse files Browse the repository at this point in the history
* GeckoHtmlRender.cs: Set gecko's CompPath property to the launcher-detected
MOZILLA_HOME env var so that gecko uses the runtime path as the basis for 
loading components (#341815)
* monodoc.in: reactivate the gecko engine

2008-03-10  Andreia Gaita  <avidigal@novell.com>

svn path=/branches/mono-1-9/mono-tools/; revision=97897
  • Loading branch information
shana committed Mar 10, 2008
1 parent bd01b0e commit 9189012
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions docbrowser/ChangeLog
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,10 @@
2008-03-10 Andreia Gaita <avidigal@novell.com>
[Backport to 1.9]
* GeckoHtmlRender.cs: Set gecko's CompPath property to the launcher-detected
MOZILLA_HOME env var so that gecko uses the runtime path as the basis for
loading components (#341815)
* monodoc.in: reactivate the gecko engine

2008-01-16 Wade Berrier <wberrier@novell.com> 2008-01-16 Wade Berrier <wberrier@novell.com>


* monodoc.desktop.in: no extension on icon, remove * monodoc.desktop.in: no extension on icon, remove
Expand Down
5 changes: 5 additions & 0 deletions docbrowser/GeckoHtmlRender.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public GeckoHtmlRender (RootTree help_tree)
{ {
this.help_tree = help_tree; this.help_tree = help_tree;
tmpPath = Path.Combine (Path.GetTempPath(), "monodoc"); tmpPath = Path.Combine (Path.GetTempPath(), "monodoc");

string mozHome = System.Environment.GetEnvironmentVariable ("MOZILLA_HOME");
if (mozHome != null)
WebControl.CompPath = mozHome;

html_panel = new WebControl (tmpPath, "MonodocGecko"); html_panel = new WebControl (tmpPath, "MonodocGecko");
html_panel.Show(); //due to Gecko bug html_panel.Show(); //due to Gecko bug
html_panel.OpenUri += OnOpenUri; html_panel.OpenUri += OnOpenUri;
Expand Down
3 changes: 1 addition & 2 deletions docbrowser/monodoc.in
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -98,5 +98,4 @@ export MOZILLA_FIVE_HOME
export MOZILLA_HOME export MOZILLA_HOME
export LD_LIBRARY_PATH export LD_LIBRARY_PATH


# force '--no-gecko' because xulrunner is crashing on some browsers (bug #341815) exec @RUNTIME@ $monodocdir/browser.exe $OPTIONS "$@" $REST
exec @RUNTIME@ $monodocdir/browser.exe --no-gecko $OPTIONS "$@" $REST

0 comments on commit 9189012

Please sign in to comment.