--- lazarus/tools/runwait.sh~ 2006-05-25 22:50:05 +0400 +++ lazarus/tools/runwait.sh 2007-10-30 19:25:12 +0300 @@ -7,10 +7,11 @@ echo $CommandLine ext=${CommandLine#*.} if [ "$ext" = "exe" ]; then echo "Windows Executable detected. Attempting to use WINE..." - if [ -x "`which wine`" ]; then - wine $CommandLine + WINE=/usr/bin/wine + if [ -x "$WINE" ]; then + $WINE $CommandLine else - echo "WINE not found in path" + echo "$WINE not found" fi else $CommandLine