ALT Linux repositórios
S: | 115.2.2-alt1 |
5.0: | 2.0.0.21-alt0.M50.3 |
4.1: | 2.0.0.21-alt0.M41.1 |
4.0: | 2.0.0.21-alt0.M40.1 |
3.0: | 1.0.6-alt2.1 |
+updates: | 1.0.8-alt0.M30.1 |
Group :: Rede/E-Mail
RPM: thunderbird
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: thunderbird-1.0.8-alt-script-fix.patch
Download
Download
diff -uNpar mozilla/mail/app/mozilla.in mozilla.alt/mail/app/mozilla.in
--- mozilla/mail/app/mozilla.in 2005-09-21 01:10:29 +0400
+++ mozilla.alt/mail/app/mozilla.in 2006-04-20 01:53:52 +0400
@@ -81,39 +81,8 @@ found=0
progname="$0"
curdir=`dirname "$progname"`
progbase=`basename "$progname"`
-run_moz="$curdir/run-mozilla.sh"
-if test -x "$run_moz"; then
- dist_bin="$curdir"
- found=1
-else
- here=`/bin/pwd`
- while [ -h "$progname" ]; do
- bn=`basename "$progname"`
- cd `dirname "$progname"`
- progname=`/bin/ls -l "$bn" | sed -e 's/^.* -> //' `
- if [ ! -x "$progname" ]; then
- break
- fi
- curdir=`dirname "$progname"`
- run_moz="$curdir/run-mozilla.sh"
- if [ -x "$run_moz" ]; then
- cd "$curdir"
- dist_bin=`pwd`
- found=1
- break
- fi
- done
- cd "$here"
-fi
-if [ $found = 0 ]; then
- # Check default compile-time libdir
- if [ -x "$moz_libdir/run-mozilla.sh" ]; then
- dist_bin="$moz_libdir"
- else
- echo "Cannot find mozilla runtime directory. Exiting."
- exit 1
- fi
-fi
+run_moz="$moz_libdir/run-mozilla.sh"
+dist_bin="$moz_libdir"
script_args=""
debugging=0
@@ -123,7 +92,7 @@ MOZILLA_BIN="${progbase}-bin"
# 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
+ "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${progbase}" -u "$USER" 'ping()' 2>/dev/null >/dev/null
RETURN_VAL=$?
if [ $RETURN_VAL -eq 0 ]; then
echo 1
@@ -187,14 +156,14 @@ if [ $ALREADY_RUNNING -eq 1 ]; then
_open_type="window"
#_open_type="tab"
_remote_cmd="openURL(${_optLast} , new-${_open_type})"
- "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${progbase}" "${_remote_cmd}"
+ "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${progbase}" -u "$USER" "${_remote_cmd}"
unset _remote_cmd _open_type
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(openInbox)"
+ "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${progbase}" -u "$USER" "xfeDoCommand(openInbox)"
exit $?
fi
fi