From f805be2f0f3c21237590ef19dfb7e06b5c493fe9 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sun, 7 Dec 2025 14:37:20 +0100 Subject: [PATCH] Revert to SIGKILL (-9) for reliable music app termination --- scripts/digital_wellbeing/music_parallelism.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/digital_wellbeing/music_parallelism.sh b/scripts/digital_wellbeing/music_parallelism.sh index 7337c11..167c751 100755 --- a/scripts/digital_wellbeing/music_parallelism.sh +++ b/scripts/digital_wellbeing/music_parallelism.sh @@ -151,14 +151,14 @@ kill_music_services() { # Kill YouTube Music Electron app if pgrep -f "youtube-music" &>/dev/null; then log_message "Killing YouTube Music app" - pkill -f "youtube-music" 2>/dev/null || true + pkill -9 -f "youtube-music" 2>/dev/null || true killed=true fi # Kill Spotify if pgrep -x "spotify" &>/dev/null; then log_message "Killing Spotify" - pkill -x "spotify" 2>/dev/null || true + pkill -9 -x "spotify" 2>/dev/null || true killed=true fi @@ -167,7 +167,7 @@ kill_music_services() { for proc in "${music_processes[@]}"; do if pgrep -i -f "$proc" &>/dev/null; then log_message "Killing $proc" - pkill -i -f "$proc" 2>/dev/null || true + pkill -9 -i -f "$proc" 2>/dev/null || true killed=true fi done