[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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/



Reply to: