emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-program-exists not working on osx
@ 2011-12-08  0:39 Roberto Huelga
  2011-12-11 12:53 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Roberto Huelga @ 2011-12-08  0:39 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 101 bytes --]

Here is a simple patch for the org-clock.el file to make the function
org-program-exists work on osx

[-- Attachment #1.2: Type: text/html, Size: 131 bytes --]

[-- Attachment #2: org-clock.el.diff --]
[-- Type: application/octet-stream, Size: 475 bytes --]

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 2534229..36ec3e8 100644
--- a/lisp/org-clock.el
+++ b/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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: org-program-exists not working on osx
  2011-12-08  0:39 org-program-exists not working on osx Roberto Huelga
@ 2011-12-11 12:53 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2011-12-11 12:53 UTC (permalink / raw)
  To: Roberto Huelga; +Cc: emacs-orgmode

Hi Roberto,

Roberto Huelga <rhuelga@gmail.com> writes:

> Here is a simple patch for the org-clock.el file to make the function
> org-program-exists work on osx

Applied, thanks.  

I added a commit message and a ChangeLog: please read this section
for your next patch:

  http://orgmode.org/worg/org-contribute.html#sec-4

Thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-11 13:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-08  0:39 org-program-exists not working on osx Roberto Huelga
2011-12-11 12:53 ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).