arch-ppa/src/runescape-launcher/wrapper.sh

10 lines
489 B
Bash
Raw Normal View History

2018-03-23 00:31:00 -04:00
#!/bin/sh
2019-03-03 20:21:14 -05:00
# 2018-07-21: Recent builds almost always have crackling audio.
# Bypassing PulseAudio's automatic latency adjustment and specifying an explicit target latency helps... most of the time. If it doesn't work, restart once or twice.
# Number chosen by fair dice roll. (30 is too low to work at all; 500 introduces noticeable latency.)
[ "$PULSE_LATENCY_MSEC" ] || export PULSE_LATENCY_MSEC="60"
2018-03-23 00:31:00 -04:00
export LD_PRELOAD="/usr/lib/libcurl.so.3"
exec /usr/bin/runescape-launcher.real "$@"