#!/bin/sh # gnomexec: set the appropriate envirnoment variables and exec the specified # command. # # The command can be specified as: # a link to 'gnomexec' (this script) : the real command name will # be executed. # # as the first argument to gnomexec (e.g. 'gnomexec panel ') # # Author: Raffaele Sena (raff@aromatic.com) # ...Another Aromatic Production (TM) # if [ "$GNOME" = "" ]; then GNOME=/usr/local/gnome fi prog=`basename $0` if [ "$prog" != "gnomexec" ]; then LD_LIBRARY_PATH=$GNOME/lib PATH=$GNOME/bin:$PATH exec $prog $* elif [ $# -gt 0 ]; then LD_LIBRARY_PATH=$GNOME/lib PATH=$GNOME/bin:$PATH exec $* else echo "usage: $0 gnome-application" fi