From f5c591cdd5ca4351f7ec5070206ba237506e8638 Mon Sep 17 00:00:00 2001 From: forcer Date: Sat, 17 Jun 2006 02:35:00 +0000 Subject: define-emms-simple-player: Check for existence of the player executable. darcs-hash:20060617023535-2189f-d285035e40953c1c8512d823c1332266294a5f4e.gz --- emms-player-simple.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emms-player-simple.el b/emms-player-simple.el index 14e4f5d..985d3ed 100644 --- a/emms-player-simple.el +++ b/emms-player-simple.el @@ -96,7 +96,8 @@ to call the player and ARGS are the command line arguements." (emms-player-simple-stop)) (defun ,playablep (track) "Return non-nil when we can play this track." - (and (memq (emms-track-type track) ,types) + (and (executable-find ,command-name) + (memq (emms-track-type track) ,types) (string-match ,regex (emms-track-name track))))))) ;; Global variables -- cgit v1.2.3