mozilla-firefox without Xvfb

Kacper Kornet kornet at camk.edu.pl
Fri Feb 18 23:04:51 CET 2005


With this patch mozilla-firefox invoking of Xvfb is not longer necessary in
the postin script. Could someone put it into CVS together with my earlier
patch for mozilla-firefo.spec (it makes the "Ctrl+f feature" work
correctly)?

#v+
Index: mozilla-firefox.spec
===================================================================
RCS file: /cvsroot/SPECS/mozilla-firefox.spec,v
retrieving revision 1.57
diff -u -r1.57 mozilla-firefox.spec
--- mozilla-firefox.spec	14 Feb 2005 22:49:57 -0000	1.57
+++ mozilla-firefox.spec	18 Feb 2005 21:51:27 -0000
@@ -56,7 +56,6 @@
 %endif
 Requires:	nspr >= 1:4.6-0.20041030.1
 Requires:	nss >= 3.8
-PreReq:		XFree86-Xvfb
 Obsoletes:	mozilla-firebird
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -197,35 +199,7 @@
 %{_firefoxdir}/regxpcom >/dev/null  || echo "E: regxpcom was exited: $?" >&2
 %{_firefoxdir}/regchrome >/dev/null || echo "E: regchrome was exited: $?" >&2
 
-TDIR=`mktemp -d /tmp/mozilla-firefox-pkg.XXXXXX` || exit 1
-HOME="$TDIR"
-export TDIR HOME
-
-mkdir -p $TDIR/.mozilla/firefox/default
-cp -rf %{_firefoxdir}/defaults/profile/* $TDIR/.mozilla/firefox/default
-
-# preseed profiles.ini
-cat > $TDIR/.mozilla/firefox/profiles.ini <<EOF
-[General]
-StartWithLastProfile=1
-
-[Profile0]
-Name=default
-IsRelative=1
-Path=default
-
-EOF
-
-
-( \
-	/usr/X11R6/bin/Xvfb :69 -nolisten tcp -ac -terminate >/dev/null 2>&1 & \
-	xvfb_pid=${!}; \
-	DISPLAY=:69 %{_firefoxdir}/firefox-bin -list-global-items >/dev/null 2>&1 & \
-	sleep 15; \
-	kill ${xvfb_pid} >/dev/null 2>&1 \
-)
-
-rm -rf $TDIR
+%{_firefoxdir}/firefox -register
 
 %postun
 if [ "$1" != "0" ]; then
#v-

Best wishes,

-- 
  Kacper Kornet




More information about the pld-devel-en mailing list