Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release-src > by-pkgid > b55dd33bf5f9c676346f0c06357a685f > files > 1

lazarus-1.2.4-4.mga5.src.rpm

--- 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