summarylogtreecommitdiffstats
path: root/transition.sh
diff options
context:
space:
mode:
authorYaohan Chen2017-04-05 20:50:40 -0400
committerYaohan Chen2017-04-05 20:50:40 -0400
commit4a9dbc1a41a2a967d1fd2e523cfb3bb75e375682 (patch)
treeec7e4eb31f78441af5841afc010fb196dcbf8c50 /transition.sh
parenta5e035835084d83facb33943e412797f0dbb9d44 (diff)
downloadaur-4a9dbc1a41a2a967d1fd2e523cfb3bb75e375682.tar.gz
Fix PulseAudio sound issue
Diffstat (limited to 'transition.sh')
-rw-r--r--transition.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/transition.sh b/transition.sh
index 88397123a0bd..13e38aeafdfc 100644
--- a/transition.sh
+++ b/transition.sh
@@ -3,4 +3,14 @@
unset SESSION_MANAGER
# If default openssl is 1.1.1, the updater will crash
-LD_RUN_PATH=/usr/lib/openssl-1.0 /opt/ankama/transition/transition "$@"
+export LD_RUN_PATH=/usr/lib/openssl-1.0
+
+transition=/opt/ankama/transition/transition
+
+# If in PulseAudio, need padsp for the game to play sounds
+if which padsp > /dev/null
+then
+ padsp "$transition" "$@"
+else
+ "$transition" "$@"
+fi