[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:23:10 -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 8:42 AM, Dove Young wrote:
In your function, the actual command send to shell is 'notify-send Time is up! 1

address@hidden notify-send Time is up! 1 minutes
Invalid number of options.

You should modify your function in this way, quote notification string before
send it to your shell

(defun show-notification (notification)
  (shell-command (format "notify-send '%s'" notification) )

Or let shell-quote-argument do the quoting for you:

(shell-command (format "notify-send %s" (shell-quote-argument notification)))

Kevin Rodgers
Denver, Colorado, USA

reply via email to

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