19 lines
516 B
Bash
Executable File
19 lines
516 B
Bash
Executable File
#!/bin/sh -e
|
|
# Based on the Debian wrapper script written by Jens Reyer and Michael Gilbert
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
wineserver32=/usr/libexec/wine/wineserver32
|
|
wineserver64=/usr/libexec/wine/wineserver64
|
|
|
|
if test -x "$wineserver64"; then
|
|
wineserver=$wineserver64
|
|
elif test -x "$wineserver32"; then
|
|
wineserver=$wineserver32
|
|
else
|
|
echo "error: unable to find wineserver executable." >&2
|
|
echo "wine and/or wine-32bit must be installed." >&2
|
|
exit 1
|
|
fi
|
|
|
|
exec $wineserver -p0 "$@"
|