
| Current Path : /bin/X11/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //bin/X11/wine-stable |
#!/bin/sh -e
wine32=/usr/lib/wine/wine
wine64=/usr/lib/wine/wine64
wine32_hint () {
echo "it looks like wine32 is missing, you should install it."
if [ "$(dpkg --print-architecture)" = "amd64" ] && ! dpkg --print-foreign-architectures | grep -qx "i386"; then
echo "multiarch needs to be enabled first. as root, please"
echo "execute \"dpkg --add-architecture i386 && apt-get update &&"
echo "apt-get install wine32\""
else
echo "as root, please execute \"apt-get install wine32\""
fi
}
if test -x $wine32; then
wine=$wine32
elif test -x $wine64; then
wine=$wine64
if test -z "$WINELOADER"; then
export WINELOADER=$wine64
fi
case "x$WINEDEBUG" in
x-all*|x*,-all*|x*err-all*)
;;
*)
wine32_hint >&2
;;
esac
else
echo "error: unable to find wine executable. this shouldn't happen." >&2
exit 1
fi
if test -z "$WINEDEBUG"; then
export WINEDEBUG=fixme-all
fi
exec $wine "$@"