kodi-retroarch-advanced-launchers: ensure sound has been released

This commit is contained in:
Edward Tjörnhammar 2017-06-09 20:40:12 +02:00
parent 57091a19e2
commit a66a9ae8e8
No known key found for this signature in database
GPG Key ID: 7B82CE4A866B6845

View File

@ -8,8 +8,9 @@ let
script = exec: '' script = exec: ''
#!${stdenv.shell} #!${stdenv.shell}
nohup sh -c "sleep 1 && pkill -SIGSTOP kodi" & nohup sh -c "pkill -SIGTSTP kodi" &
nohup sh -c "${exec} '$@' -f;pkill -SIGCONT kodi" # https://forum.kodi.tv/showthread.php?tid=185074&pid=1622750#pid1622750
nohup sh -c "sleep 10 && ${exec} '$@' -f;pkill -SIGCONT kodi"
''; '';
scriptSh = exec: pkgs.writeScript ("kodi-"+exec.name) (script exec.path); scriptSh = exec: pkgs.writeScript ("kodi-"+exec.name) (script exec.path);
execs = map (core: rec { name = core.core; path = core+"/bin/retroarch-"+name;}) cores; execs = map (core: rec { name = core.core; path = core+"/bin/retroarch-"+name;}) cores;
@ -31,8 +32,8 @@ stdenv.mkDerivation rec {
description = "Kodi retroarch advanced launchers"; description = "Kodi retroarch advanced launchers";
longDescription = '' longDescription = ''
These retroarch launchers are intended to be used with These retroarch launchers are intended to be used with
anglescry advanced launcher for Kodi since device input is advanced (emulation) launcher for Kodi since device input is
caught by both Kodi and the retroarch process. otherwise caught by both Kodi and the retroarch process.
''; '';
license = stdenv.lib.licenses.gpl3; license = stdenv.lib.licenses.gpl3;
}; };