summarylogtreecommitdiffstats
path: root/discord-rpc-wine.sh
blob: a6a9a45add0dcc30a82200a04843dd149f5d0b34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# append dll paths to WINEDLLPATH

appendwinepath() {
	case ":$WINEDLLPATH:" in
		*:"$1":*)
			;;
		*)
			WINEDLLPATH="${WINEDLLPATH:+$WINEDLLPATH:}$1"
	esac
}

if test -d '/usr/lib/discord-rpc-wine/x86_64'; then
	appendwinepath '/usr/lib/discord-rpc-wine/x86_64'
fi
appendwinepath '/usr/lib/discord-rpc-wine/i686'

unset appendwinepath
export WINEDLLPATH

## Uncomment the following line to always use the dll override
## This might break some games as not everything is implemented in this discord-rpc implementation
#export WINEDLLOVERRIDES="${WINEDLLOVERRIDES:+$WINEDLLOVERRIDES;}discord-rpc=b"