Mailinglist Archive: opensuse-de (2713 mails)

< Previous Next >
[OT] Skript-Frage: Mozilla-Home finden
  • From: "Kay Patzwald" <mailing-lists@xxxxxx>
  • Date: Sun, 31 Jul 2005 10:07:26 +0200
  • Message-id: <op.surp6owck0rzaz@xxxxxxxxxx>
Hi,

hat jemand ne Idee, wie man das Home-Verzeichnis einer Mozilla-Installation finden kann? Ich brauche das für ein Start-Skript, was zu einem RPM gehören soll. Ich habe folgendes Snipplet von jemanden bekommen, was jedoch voraussetzt, dass Mozilla immer unter /usr/lib/ installiert ist, was ja gerade bei SuSE selten der Fall ist.

if [ -z "$MOZILLA_HOME" -o ! -d "$MOZILLA_HOME" ] ; then
MOZILLACMD=`which mozilla 2> /dev/null`
if [ -z "$MOZILLACMD" ] ; then
MOZILLACMD=mozilla
fi
if [ -x "$MOZILLACMD" ] ; then
MOZILLA_VERSION=`$MOZILLACMD -v | cut -d "," -f 1 | cut -d " " -f 2`
MOZILLA_HOME=/usr/lib/mozilla-${MOZILLA_VERSION}
fi
fi

MfG Kay

< Previous Next >
Follow Ups