3 # Make sure we have a terminal for the user to see and then run
4 # the real install script.
6 # Some systems don't correctly set the PWD when a script is double-clicked,
7 # so go ahead and figure out our path and make sure we are in that directory.
10 PKG_PATH=$(dirname $(readlink -f $0))
13 if [ -z "$TERM" ] || [ "$TERM" = "dumb" ]; then
14 if which xterm > /dev/null; then
15 exec xterm -e ${PKG_PATH}/.stage2.run
16 elif which gnome-terminal > /dev/null; then
17 exec gnome-terminal -e ${PKG_PATH}/.stage2.run
18 elif which konsole > /dev/null; then
19 exec konsole -e ${PKG_PATH}/.stage2.run
22 ${PKG_PATH}/.stage2.run