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

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