From ab23d68de35eb42b67689d39cbcf1c2ef9ca9189 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Mon, 25 Nov 2024 03:23:58 -0300 Subject: [PATCH] home-environment: radio: Use spawn-shell-command instead of system since a lambda action should be suspendable --- home-environments/radio/shepherd-services.scm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/home-environments/radio/shepherd-services.scm b/home-environments/radio/shepherd-services.scm index 733763d..2936be6 100644 --- a/home-environments/radio/shepherd-services.scm +++ b/home-environments/radio/shepherd-services.scm @@ -20,10 +20,7 @@ next calendar event."))) (start #~(make-timer-constructor (calendar-event #:hours '(6) #:minutes '(0)) (lambda () - (use-modules (ice-9 threads)) - (parallel - (system "foot -He rem") - (system "mpv --shuffle ~/media/music/by-artist"))))) + (spawn-shell-command "mpv --shuffle ~/media/music/by-artist")))) (stop #~(make-timer-destructor)) (actions (list timer-trigger-action))))