yes they are both executable ..
if kodi is loaded and i run pre-steam.sh kodi closes and it goes to the openbox GUI
if i run post-steam.sh i get the following error.
E: [pulseaudio] main.c: Failed to kill daemon: No such process
I changed the owner to root just in case
-rwxrwxr-x 1 root dustin 1150 May 7 09:06 post-steam.sh
-rwxrwxr-x 1 root dustin 402 May 7 09:27 pre-steam.sh
cat *.sh
#!/bin/bash
#change the ALWAYS_KILL_PULSEAUDIO_BEFORE_STARTING_KODI= to yes if you want to stop pulseaudio before starting Kodi
#killing pulseaudio before starting Kodi will ensure that Kodi always uses alsa, but steam may not like having pulseaudio stopped while steam is still running (via 'exit to desktop')
ALWAYS_KILL_PULSEAUDIO_BEFORE_STARTING_KODI=yes
if
$ALWAYS_KILL_PULSEAUDIO_BEFORE_STARTING_KODI = yes (wiki) ; then
pulseaudio -k
fi
#change the KILL_PULSEAUDIO_ONLY_WHEN_COMPLETELY_EXITING_STEAM= to no if you dont want to stop pulseaudio only when completely exiting steam
#if yes Kodi will use pulseaudio when steam is running (via 'exit to desktop')
#change the SECONDS_TO_WAIT= to alter the time to wait after closing BPM to check if steam is still running, 2 seconds is good for my system although this could vary from system to system. This will cause Kodi to take 2 seconds longer to restart.
KILL_PULSEAUDIO_ONLY_WHEN_COMPLETELY_EXITING_STEAM=yes
SECONDS_TO_WAIT=2
if
$KILL_PULSEAUDIO_ONLY_WHEN_COMPLETELY_EXITING_STEAM = yes (wiki) ; then
sleep $SECONDS_TO_WAIT
if
! $(pidof steam) (wiki) ; then
pulseaudio -k
fi
fi
#!/bin/bash
#change the KILL_KODI_BEFORE_STARTING_PULSEAUDIO= to yes if you want to stop Kodi before starting pulseaudio
#killing Kodi before starting pulseaudio will ensure the steam bpm gui has sound but will reduce the seamlessness of the addon
KILL_KODI_BEFORE_STARTING_PULSEAUDIO=yes
if
$KILL_KODI_BEFORE_STARTING_PULSEAUDIO = yes (wiki) ; then
kill -9 $(pidof kodi.bin)
fi
pulseaudio --start