From: Roberto Huelga <rhuelga@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-program-exists not working on osx
Date: Thu, 8 Dec 2011 01:39:34 +0100 [thread overview]
Message-ID: <CAPJ+JL0=0aqkS6MG77Ev_Z17AE9_2-k8DWhu=uw7f9bRwGtm-w@mail.gmail.com> (raw)
[-- 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
next reply other threads:[~2011-12-08 0:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-08 0:39 Roberto Huelga [this message]
2011-12-11 12:53 ` org-program-exists not working on osx Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPJ+JL0=0aqkS6MG77Ev_Z17AE9_2-k8DWhu=uw7f9bRwGtm-w@mail.gmail.com' \
--to=rhuelga@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).