Make the function `org-program-exists' work on osx.

* org-clock.el (org-program-exists): Make the function
compatible with darwin systems.
This commit is contained in:
Roberto Huelga 2011-12-11 13:50:36 +01:00 committed by Bastien Guerry
parent bc607a9af4
commit a39328cddf
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ Use alsa's aplay tool if available."
(defun org-program-exists (program-name)
"Checks whenever we can locate program and launch it."
(if (eq system-type 'gnu/linux)
(if (member system-type '(gnu/linux darwin))
(= 0 (call-process "which" nil nil nil program-name))))
(defvar org-clock-mode-line-entry nil