[pkg-wine-party] Bug#770813: /usr/bin/wine script insufficiently clever [patch]

Erik de Castro Lopo erikd at mega-nerd.com
Mon Nov 24 11:13:28 UTC 2014


The following seems to work for me.

--- /usr/bin/wine.orig	2014-11-03 05:33:12.000000000 +1100
+++ /usr/bin/wine	2014-11-24 20:35:10.081487087 +1100
@@ -6,6 +6,16 @@
 wine32=$bindir/wine32
 wine64=$bindir/wine64
 
+if test -z "${WINEARCH}${WINEPREFIX}" ; then
+	if test $(file $1 | grep -c 'Intel 80386') -eq 1 ; then
+		WINEARCH=win32
+		WINEPREFIX=$HOME/.wine
+	elif test $(file $1 | grep -c 'x86-64') -eq 1 ; then
+		WINEARCH=win64
+		WINEPREFIX=$HOME/.wine64
+	fi
+fi
+
 if test -x $wine32 -a "$WINEARCH" != "win64"; then
     wine=$wine32
 elif test -x $wine64; then



-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/



More information about the pkg-wine-party mailing list