diff options
author | Yaohan Chen | 2017-04-05 20:50:40 -0400 |
---|---|---|
committer | Yaohan Chen | 2017-04-05 20:50:40 -0400 |
commit | 4a9dbc1a41a2a967d1fd2e523cfb3bb75e375682 (patch) | |
tree | ec7e4eb31f78441af5841afc010fb196dcbf8c50 /transition.sh | |
parent | a5e035835084d83facb33943e412797f0dbb9d44 (diff) | |
download | aur-4a9dbc1a41a2a967d1fd2e523cfb3bb75e375682.tar.gz |
Fix PulseAudio sound issue
Diffstat (limited to 'transition.sh')
-rw-r--r-- | transition.sh | 12 |
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 |