summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 55dfca0)
raw | patch | inline | side by side (parent: 55dfca0)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 26 Jun 2007 06:13:59 +0000 (06:13 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 26 Jun 2007 06:13:59 +0000 (06:13 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6684 594d385d-05f5-0310-b6e9-bd551577e9d8
contrib/scripts/start-gosa.sh | patch | blob | history |
index d6cd93a9c9cd4cfea1a7b347151c0df22c2c2e7a..db48be6a851ce006d03a207135e3862ab96afb48 100755 (executable)
#!/bin/sh
-# Start script for GOsa to be started via mozilla
+# Start script for GOsa to be started via gecko based browsers
url=""
if [ $# -ne 1 ]; then
exit 1
fi
+# What browser are we using?
+result=""
+for browser in iceweasel firefox mozilla; do
+ if which $browser &> /dev/null; then
+ result=$browser
+ break
+ fi
+done
+if [ -z "$result" ]; then
+ echo "No suitable browser found to launch GOsa. You'll need iceweasel, firefox or mozilla in your PATH!"
+ exit 1
+fi
+browser=$result
+
# Check for presence of gosa profile
-if [ ! -d $HOME/.mozilla/firefox/*.gosa ]; then
- firefox -CreateProfile gosa
- config=`echo $HOME/.mozilla/firefox/*.gosa/`
+if [ ! -d $HOME/.mozilla/$browser/*.gosa ]; then
+ echo "No browser profile found for GOsa - creating one..."
+ $browser -CreateProfile gosa
+ config=`echo $HOME/.mozilla/$browser/*.gosa/`
cat << EOF > $config/prefs.js
# Mozilla User Preferences
# Start mozilla with GOsa profile
-firefox -P gosa
+$browser -P gosa