add an extra sleep between user init and paplay

there is a race as we need the pulseaudio session to be run by the
time we play as otherwise we activate a daemon that uses the wrong
profile and doesn't play properly

generally we sould move the heap of stuff out of this script and
into a user session instead
This commit is contained in:
Harald Sitter 2015-06-19 11:20:26 -07:00
parent 2d45db913b
commit 7c3a8d90c2

View file

@ -34,6 +34,8 @@ export FORCE_RIL_NUM_MODEMS=1
# upstart user session has useful bits like mtp-server
init --user &
sleep 5
/usr/bin/kbuildsycoca5
/usr/bin/kded5&