[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: use linux native notifications with tea-time

From: Kevin Rodgers
Subject: Re: use linux native notifications with tea-time
Date: Thu, 09 Jun 2011 23:33:06 -0600
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv: Gecko/20110414 Thunderbird/3.1.10

On 6/8/11 9:37 AM, Benjamin Slade wrote:
(defun show-notification (notification)
"Show notification. Use notify-send."
(start-process "tea-time-notify-notification" nil "notify-send" "-i"
(expand-file-name "~/path/to/your/icon/YourIconName.png") "Emacs Tea
Timer" notification)

Since you don't need any shell features like indirection, calling the program
directly (instead of via the shell) is simpler: no quoting, and more efficient.

Whether call-process or start-process should be used in this case depends
on whether the program returns immediately or not, since the output from the
process isn't being used within Emacs.

Kevin Rodgers
Denver, Colorado, USA

reply via email to

[Prev in Thread] Current Thread [Next in Thread]