diff -ruN mozilla-orig/.mozconfig mozilla/.mozconfig --- mozilla-orig/.mozconfig Wed Dec 31 19:00:00 1969 +++ mozilla/.mozconfig Tue Jun 20 11:43:33 2006 @@ -0,0 +1,43 @@ +# sh +# Build configuration script +# +# See http://www.mozilla.org/build/unix.html for build instructions. +# + +. $topsrcdir/browser/config/mozconfig + +# Options for client.mk. +# environment variables to set +mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@ + +# Options for 'configure' (same as command-line options). +ac_add_options --prefix=@PREFIX@ +ac_add_options --enable-official-branding +ac_add_options --enable-default-toolkit=gtk2 +ac_add_options --enable-xft +#ac_add_options --disable-xft +#ac_add_options --enable-freetype2 +ac_add_options --disable-freetype2 +ac_add_options --enable-postscript +ac_add_options --enable-xinerama +ac_add_options --with-pthreads +ac_add_options --disable-gnomevfs +ac_add_options --disable-gnomeui +ac_add_options --enable-extensions=default,-gnomevfs,xforms,schema-validation +ac_add_options --enable-canvas +ac_add_options --enable-svg + +# prebinding disabled or otherwise don't get binary +ac_add_options --disable-prebinding +ac_add_options --disable-debug +ac_add_options --disable-tests +ac_add_options --enable-strip +ac_add_options --enable-optimize='-Os' +ac_add_options --enable-macos-target=10.3 +ac_add_options --with-default-mozilla-five-home=@PREFIX@/lib/firefox2 +ac_add_options --with-system-jpeg=@PREFIX@ +ac_add_options --with-system-png=@PREFIX@ +ac_add_options --with-system-zlib=/usr + +#ac_add_options --with-ft-prefix=@PREFIX@/lib/freetype2 +#ac_add_options --with-ft-exec-prefix=@PREFIX@/lib/freetype2/bin diff -ruN mozilla-orig/browser/app/mozilla.in mozilla/browser/app/mozilla.in --- mozilla-orig/browser/app/mozilla.in Wed May 10 12:23:59 2006 +++ mozilla/browser/app/mozilla.in Tue Jun 20 11:43:33 2006 @@ -99,7 +99,9 @@ # If not, then start resolving symlinks until we find run-mozilla.sh found=0 progname="$0" -curdir=`dirname "$progname"` +#curdir=`dirname "$progname"` +# looking in %p/bin, not %p/lib/firefox, so fixing to $moz_libdir +curdir="$moz_libdir" progbase=`basename "$progname"` run_moz="$curdir/run-mozilla.sh" if test -x "$run_moz"; then @@ -140,9 +142,75 @@ debugging=0 MOZILLA_BIN="${progbase}-bin" +# The following is to check for a currently running instance. +# This is taken almost verbatim from the Mozilla RPM package's launch script. +MOZ_CLIENT_PROGRAM="$dist_bin/mozilla-xremote-client" +check_running() { + "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${progbase}" 'ping()' 2>/dev/null >/dev/null + RETURN_VAL=$? + if [ $RETURN_VAL -eq 0 ]; then + echo 1 + return 1 + else + echo 0 + return 0 + fi +} + if [ "$OSTYPE" = "beos" ]; then mimeset -F "$MOZILLA_BIN" fi + +ALREADY_RUNNING=`check_running` + +################################################################ Parse Arguments +# If there's a command line argument but it doesn't begin with a - +# it's probably a url. Try to send it to a running instance. +_USE_EXIST=0 +_optOne="$1" +case "${_optOne}" in + -*) + ;; + *) + _USE_EXIST=1 + ;; +esac + +_optLast= +for i in "$@"; do + _optLast="${i}" +done #last arg + +if [ `expr "${_optLast}" : '.*:/.*'` -eq 0 -a \( -f "${_optLast}" -o -d "${_optLast}" \) ]; then + # Last argument seems to be a local file/directory + # Check, if it is absolutely specified (ie. /home/foo/file vs. ./file) + # If it is just "relatively" (./file) specified, make it absolutely + [ `expr "${_optLast}" : '/.*'` -eq 0 ] && _optLast="file://`pwd`/${_optLast}" +fi +################################################################ Parse Arguments + +########################################################################### Main +if [ $ALREADY_RUNNING -eq 1 ]; then + # There's an instance already running. Use it. + # Any command line args passed in? + if [ $# -gt 0 ]; then + # There were "some" command line args. + if [ ${_USE_EXIST} -eq 1 ]; then + # We should use an existing instance, as _USE_EXIST=$_USE_EXIST=-1 + _remote_cmd="openURL(${_optLast})" + "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${progbase}" "${_remote_cmd}" + unset _remote_cmd + exit $? + fi + else + # No command line args. Open new window/tab + #exec "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${progbase}" "xfeDoCommand(openBrowser)" + "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${progbase}" "xfeDoCommand(openBrowser)" + exit $? + fi +fi +# Default action - no running instance or _USE_EXIST (${_USE_EXIST}) ! -eq 1 +########################################################################### Main pass_arg_count=0 while [ $# -gt $pass_arg_count ] diff -ruN mozilla-orig/browser/locales/en-US/profile/bookmarks.html mozilla/browser/locales/en-US/profile/bookmarks.html --- mozilla-orig/browser/locales/en-US/profile/bookmarks.html Tue May 16 15:44:44 2006 +++ mozilla/browser/locales/en-US/profile/bookmarks.html Tue Jun 20 11:43:33 2006 @@ -14,6 +14,7 @@