ports/emulators/wine/files/wine.sh
Gerald Pfeifer ef11261971 emulators/wine: Simplify the logic in wine.sh
PR:		275677
Discussed with:	Alex S <iwtcex@gmail.com>
2024-01-31 12:27:21 +00:00

17 lines
402 B
Bash

#!/bin/sh
TARGET="$(realpath "$0")"
if [ -z "$WINESERVER" ]; then
if [ -f "${TARGET%/*}/wineserver32" ]; then
export WINESERVER="${TARGET%/*}/wineserver32"
elif [ -f "${TARGET%/*}/wineserver" ]; then
export WINESERVER="${TARGET%/*}/wineserver"
fi
fi
# Workaround for https://bugs.winehq.org/show_bug.cgi?id=50257
export LD_BIND_NOW=1
export LD_32_BIND_NOW=1
exec "${TARGET}.bin" "$@"