[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU IceCat and use with the alternate profile option

From: rmyster
Subject: Re: GNU IceCat and use with the alternate profile option
Date: Wed, 5 Dec 2007 11:32:32 -0700

> On 2007-12-04 00:44, address@hidden wrote:
> > I did a confirmation test compile with the latest code and the
> > resulting icecat script does need the changes to the icecat script after
> > compiling ... <snip>

On 12/4/07, inconnu <address@hidden> wrote:
> I'm puzzled that the icecat script resulting from your compile still
> shows "run-mozilla.sh" instead of "run-icecat.sh" since I compiled from
> source, applying a modification of my earlier hack script,
> and got a fully functioning icecat script, pointing to run-icecat.sh.
> Did you do the replacement for "run-mozilla.sh" in the source code
> before compiling your latest test build:
>  for i in `grep -irl run-icecat.sh ./*`; do
> sed -i 's/run-icecat.sh/run-icecat.sh/g' $i;done

No - that  test was compiled with the source code as provided to simulate the
results of what someone who isn't aware of this thread would end up with.

My other tests with code that tried to replace all
run-mozilla.sh instances never successfully compiled so I resorted to
editing icescript after the compile was finished.  But your question
got me looking further and  it seems that the file causing the icecat
script problem is "./browser/app/mozilla.in".

Applying the change below to "./browser/app/mozilla.in" before
compiling seems to address the resulting non-executable icecat script

sed -i 's/run-mozilla/run-icecat/g' ./browser/app/mozilla.in

The diff output for the changes made with the above line applied is
included at the end of this post. With this change applied to the
current source & after compiling and packing, the
resulting tarball unpacks with a functional icecat script.

running multiple icecat versions simultaneously follow up:

After further testing on this issue, two(or more) versions of icecat
can run simultaneously and independently of each other if the
additional ones are compiled with a different default profile folder
location along with changes to the
default "--with-distribution-id=org.gnu.gnuzilla" setting in
.mozconfig (something unique for each version).  Changes for the
default profile folder location  occur in
./browser/app.nsBrowserApp.cpp, not the .mozconfig
"--with-user-appdir=<name>" . The mozconfig option can be changed to
match the nsBrowserApp.cpp edit but it won't affect the outcome.

mozilla.in  diff output below:

--- ./browser/app/mozilla.in    2007-11-27 12:55:02.000000000 -0700
+++ ./browser/app/mozilla.in    2007-12-05 08:09:51.000000000 -0700
@@ -95,13 +95,13 @@ moz_pis_startstop_scripts()

-# Use run-mozilla.sh in the current dir if it exists
-# If not, then start resolving symlinks until we find run-mozilla.sh
+# Use run-icecat.sh in the current dir if it exists
+# If not, then start resolving symlinks until we find run-icecat.sh
 curdir=`dirname "$progname"`
 progbase=`basename "$progname"`
 if test -x "$run_moz"; then
@@ -116,11 +116,11 @@ else
     curdir=`dirname "$progname"`
-    run_moz="$curdir/run-mozilla.sh"
+    run_moz="$curdir/run-icecat.sh"
     if [ -x "$run_moz" ]; then
       cd "$curdir"
-      run_moz="$dist_bin/run-mozilla.sh"
+      run_moz="$dist_bin/run-icecat.sh"
@@ -129,7 +129,7 @@ else
 if [ $found = 0 ]; then
   # Check default compile-time libdir
-  if [ -x "$moz_libdir/run-mozilla.sh" ]; then
+  if [ -x "$moz_libdir/run-icecat.sh" ]; then
     echo "Cannot find mozilla runtime directory. Exiting."
@@ -179,9 +179,9 @@ moz_pis_startstop_scripts "start"

 if [ $debugging = 1 ]
-  echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN "$@"
+  echo $dist_bin/run-icecat.sh $script_args $dist_bin/$MOZILLA_BIN "$@"
-"$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@"
+"$dist_bin/run-icecat.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@"

 ## Stop addon scripts

reply via email to

[Prev in Thread] Current Thread [Next in Thread]