2
# File: squeak.sh (All-in-One version)
3
# Author: Bert Freudenberg
4
# Description: Script to run Squeak from the all-in-one app structure
5
# (based on Etoys-To-Go)
11
VM="$APP/Contents/Linux-i686/bin/squeak"
12
RESOURCES="$APP/Contents/Resources"
13
IMAGE="$RESOURCES/drgeo.image"
19
"metadata::custom-icon" \
20
"file://$RESOURCES/drgeo.png" \
25
if [ -n "$DISPLAY" -a -x "`which kdialog 2>/dev/null`" ]; then
27
elif [ -n "$DISPLAY" -a -x "`which zenity 2>/dev/null`" ]; then
28
zenity --error --text "$1"
30
dialog --msgbox "$1" 0 0
34
if [ ! -x "$VM" ] ; then
35
if [ ! -r "$VM" ] ; then
36
showerror "This Squeak version does not support $OS-$CPU"
38
showerror "Squeak does not have permissions to execute"