diff --git a/src/cmd/restart.go b/src/cmd/restart.go index b55023e355..44778fa80d 100644 --- a/src/cmd/restart.go +++ b/src/cmd/restart.go @@ -21,13 +21,13 @@ func SpotifyKill() { isRunning := exec.Command("pgrep", "spotify") _, err := isRunning.Output() if err == nil { - exec.Command("pkill", "spotify").Run() + exec.Command("pkill", "-x", "spotify").Run() } case "darwin": isRunning := exec.Command("sh", "-c", "ps aux | grep 'Spotify' | grep -v grep") _, err := isRunning.CombinedOutput() if err == nil { - exec.Command("pkill", "Spotify").Run() + exec.Command("pkill", "-x", "Spotify").Run() } } }