package mpd import "os/exec" // Detect if music player daemon is installed. func Detect() bool { _, err := exec.LookPath("mpd") return err == nil }