aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/wine-proton/files/wine.sh
blob: f2ae3da52f116f9699715123715996dd29172b38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

TARGET="$(realpath "$0")"

if [ -z "$WINESERVER" ]
then
  if [ -f "${TARGET%/*}/wineserver" ]
  then
    export WINESERVER="${TARGET%/*}/wineserver"
  fi
  if [ -f "${TARGET%/*}/wineserver32" ]
  then
    export WINESERVER="${TARGET%/*}/wineserver32"
  fi
fi

export GST_PLUGIN_SYSTEM_PATH_1_0="${TARGET%/*/*/*}/lib/gstreamer-1.0"

exec "${TARGET}.bin" "$@"