[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option
From: |
rmyster |
Subject: |
Re: GNU IceCat 2.0.0.10-g1 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 2.0.0.11-g1 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
> 2.0.0.11-g1 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 2.0.0.11-g1 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
issue:
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 2.0.0.11-g1 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()
moz_libdir=%MOZAPPDIR%
MRE_HOME=%MREDIR%
-# 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
found=0
progname="$0"
curdir=`dirname "$progname"`
progbase=`basename "$progname"`
-run_moz="$curdir/run-mozilla.sh"
+run_moz="$curdir/run-icecat.sh"
if test -x "$run_moz"; then
dist_bin="$curdir"
found=1
@@ -116,11 +116,11 @@ else
break
fi
curdir=`dirname "$progname"`
- run_moz="$curdir/run-mozilla.sh"
+ run_moz="$curdir/run-icecat.sh"
if [ -x "$run_moz" ]; then
cd "$curdir"
dist_bin=`pwd`
- run_moz="$dist_bin/run-mozilla.sh"
+ run_moz="$dist_bin/run-icecat.sh"
found=1
break
fi
@@ -129,7 +129,7 @@ else
fi
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
dist_bin="$moz_libdir"
else
echo "Cannot find mozilla runtime directory. Exiting."
@@ -179,9 +179,9 @@ moz_pis_startstop_scripts "start"
if [ $debugging = 1 ]
then
- echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN "$@"
+ echo $dist_bin/run-icecat.sh $script_args $dist_bin/$MOZILLA_BIN "$@"
fi
-"$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@"
+"$dist_bin/run-icecat.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@"
exitcode=$?
## Stop addon scripts
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, (continued)
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, rmyster, 2007/12/02
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, rmyster, 2007/12/03
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, Giuseppe Scrivano, 2007/12/03
- GNU IceCat 2.0.0.11-g1, Giuseppe Scrivano, 2007/12/03
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, Giuseppe Scrivano, 2007/12/03
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, rmyster, 2007/12/03
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, Giuseppe Scrivano, 2007/12/04
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, rmyster, 2007/12/04
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, rmyster, 2007/12/03
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, inconnu, 2007/12/04
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option,
rmyster <=
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, Giuseppe Scrivano, 2007/12/05
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, rmyster, 2007/12/03