* Fix the title bar icon.
svn path=/nixpkgs/trunk/; revision=4818
This commit is contained in:
parent
9012efbaef
commit
bbda87fc30
@ -9,17 +9,22 @@ postInstall() {
|
|||||||
# This fixes starting Firefox when there already is a running
|
# This fixes starting Firefox when there already is a running
|
||||||
# instance. The `firefox' wrapper script actually expects to be
|
# instance. The `firefox' wrapper script actually expects to be
|
||||||
# in the same directory as `run-mozilla.sh', apparently.
|
# in the same directory as `run-mozilla.sh', apparently.
|
||||||
|
libDir=$(cd $out/lib && ls -d firefox-*)
|
||||||
|
test -n "$libDir"
|
||||||
cd $out/bin
|
cd $out/bin
|
||||||
mv firefox ../lib/firefox-*/
|
mv firefox ../lib/$libDir/
|
||||||
ln -s ../lib/firefox-*/firefox .
|
ln -s ../lib/$libDir/firefox .
|
||||||
|
|
||||||
# Register extensions etc.
|
# Register extensions etc.
|
||||||
echo "running firefox -register..."
|
echo "running firefox -register..."
|
||||||
(cd $out/lib/firefox-* && LD_LIBRARY_PATH=. ./firefox-bin -register) || false
|
(cd $out/lib/$libDir && LD_LIBRARY_PATH=. ./firefox-bin -register) || false
|
||||||
|
|
||||||
echo "running regxpcom..."
|
echo "running regxpcom..."
|
||||||
(cd $out/lib/firefox-* && LD_LIBRARY_PATH=. ./regxpcom) || false
|
(cd $out/lib/$libDir && LD_LIBRARY_PATH=. ./regxpcom) || false
|
||||||
|
|
||||||
|
# Put the Firefox icon in the right place.
|
||||||
|
ensureDir $out/lib/$libDir/chrome/icons/default
|
||||||
|
ln -s ../../../icons/default.xpm $out/lib/$libDir/chrome/icons/default/
|
||||||
}
|
}
|
||||||
|
|
||||||
genericBuild
|
genericBuild
|
||||||
|
Loading…
x
Reference in New Issue
Block a user