SOURCES: mozilla-firefox.sh - use exec as this program never retur...

glen glen at pld-linux.org
Sat Nov 12 14:55:09 CET 2005


Author: glen                         Date: Sat Nov 12 13:55:09 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- use exec as this program never returns when launching firefox

---- Files affected:
SOURCES:
   mozilla-firefox.sh (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SOURCES/mozilla-firefox.sh
diff -u SOURCES/mozilla-firefox.sh:1.9 SOURCES/mozilla-firefox.sh:1.10
--- SOURCES/mozilla-firefox.sh:1.9	Sat Nov 12 14:47:56 2005
+++ SOURCES/mozilla-firefox.sh	Sat Nov 12 14:55:04 2005
@@ -51,22 +51,22 @@
 fi
 
 if [ "$1" == "-remote" ]; then
-	$FIREFOX "$@"
+	exec $FIREFOX "$@"
 else
 	PING=`$FIREFOX -remote 'ping()' 2>&1 >/dev/null`
 	if [ -n "$PING" ]; then
 		if [ -f "`pwd`/$1" ]; then
-			$FIREFOX "file://`pwd`/$1"
+			exec $FIREFOX "file://`pwd`/$1"
 		else
-			$FIREFOX "$@"
+			exec $FIREFOX "$@"
 		fi
 	else
 		if [ -z "$1" ]; then
-			$FIREFOX -remote 'xfeDoCommand (openBrowser)'
+			exec $FIREFOX -remote 'xfeDoCommand (openBrowser)'
 		elif [ "$1" == "-mail" ]; then
-			$FIREFOX -remote 'xfeDoCommand (openInbox)'
+			exec $FIREFOX -remote 'xfeDoCommand (openInbox)'
 		elif [ "$1" == "-compose" ]; then
-			$FIREFOX -remote 'xfeDoCommand (composeMessage)'
+			exec $FIREFOX -remote 'xfeDoCommand (composeMessage)'
 		else
 			if [ -f "`pwd`/$1" ]; then
 				URL="file://`pwd`/$1"
@@ -75,9 +75,9 @@
 			fi
 			grep browser.tabs.opentabfor.middleclick ~/.mozilla/firefox/*/prefs.js | grep true > /dev/null
 			if [ 0 -eq 0 ]; then
-				$FIREFOX -remote "OpenUrl($URL,new-tab)"
+				exec $FIREFOX -remote "OpenUrl($URL,new-tab)"
 			else
-				$FIREFOX -remote "OpenUrl($URL,new-window)"
+				exec $FIREFOX -remote "OpenUrl($URL,new-window)"
 			fi
 		fi
 	fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/mozilla-firefox.sh?r1=1.9&r2=1.10&f=u




More information about the pld-cvs-commit mailing list