瀏覽代碼

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

* org-clock.el (org-program-exists): Make the function
compatible with darwin systems.
Roberto Huelga 13 年之前
父節點
當前提交
a39328cddf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/org-clock.el

+ 1 - 1
lisp/org-clock.el

@@ -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