[PATCH] wineprefixcreate: Obtain wine and wineserver from the bindir, instead of relaying on the PATH.

Pierre d'Herbemont stegefin at free.fr
Thu May 25 08:20:59 CDT 2006


Hi,

This patch allow to use wineprefixcreate with no PATH environment  
variable set to indicate where to find Wine.

Thanks,

Pierre.

ChangeLog:
Obtain wine and wineserver from the bindir, instead of relaying on  
the PATH.

  tools/wineprefixcreate.in |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
ad4f2bd70022d5b303c21836d51cabc1515d0233
diff --git a/tools/wineprefixcreate.in b/tools/wineprefixcreate.in
index 7898456..7ac5c8c 100644
--- a/tools/wineprefixcreate.in
+++ b/tools/wineprefixcreate.in
@@ -168,13 +168,13 @@ # Copy the .inf script and run it

  cp "$datadir/wine.inf" "$CROOT/windows/inf/wine.inf"
  export WINEPREFIX
-"${WINELOADER:-wine}" rundll32.exe setupapi.dll,InstallHinfSection  
DefaultInstall 128 wine.inf
+"${WINELOADER:-$bindir/wine}" rundll32.exe  
setupapi.dll,InstallHinfSection DefaultInstall 128 wine.inf

  # Wait for the wineserver to finish

  if [ $do_wait = 1 ]
  then
-    "${WINESERVER:-wineserver}" -w
+    "${WINESERVER:-$bindir/wineserver}" -w
  fi

  if [ $quiet = 0 ]



More information about the wine-patches mailing list