#!/bin/sh # # Startup script for the fedora.us Songbird RPM # (based on the Mozilla RPM launch script) # ## ## Variables ## MOZ_ARCH=$(uname -m) case $MOZ_ARCH in x86_64 | ia64 | s390 ) MOZ_LIB_DIR="/usr/lib64" SECONDARY_LIB_DIR="/usr/lib" ;; * ) MOZ_LIB_DIR="/usr/lib" SECONDARY_LIB_DIR="/usr/lib64" ;; esac if [ ! -x $MOZ_LIB_DIR/songbird-SONGBIRD_VERSION/songbird ]; then if [ ! -x $SECONDARY_LIB_DIR/songbird-SONGBIRD_VERSION/songbird ]; then echo "Error: $MOZ_LIB_DIR/songbird-SONGBIRD_VERSION/songbird not found" if [ -d $SECONDARY_LIB_DIR ]; then echo " $SECONDARY_LIB_DIR/songbird-SONGBIRD_VERSION/songbird not found" fi exit 1 fi MOZ_LIB_DIR="$SECONDARY_LIB_DIR" fi MOZ_DIST_BIN="$MOZ_LIB_DIR/songbird-SONGBIRD_VERSION" MOZ_PROGRAM="$MOZ_DIST_BIN/songbird" MOZ_PLUGIN_PATH="$MOZ_LIB_DIR/mozilla/plugins" export MOZ_PLUGIN_PATH exec $MOZ_PROGRAM "$@"