summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--sys/jao-osd.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/jao-osd.el b/sys/jao-osd.el
index 260af44..5e70b79 100644
--- a/sys/jao-osd.el
+++ b/sys/jao-osd.el
@@ -53,8 +53,10 @@
(clrhash jao-osd-processes))
(defun jao-notify (msg &optional title icon)
- (let ((args (if title (format "'%s' '%s'" msg title) (format "'%s'" msg)))
- (iflag (if (and (stringp icon) (file-exists-p icon))
+ (let* ((title (shell-quote-argument title))
+ (msg (shell-quote-argument msg))
+ (args (if title (format "%s %s" msg title) msg))
+ (iflag (if (and (stringp icon) (file-exists-p icon))
(format " -i %s" icon)
"")))
(shell-command-to-string (format "notify-send %s%s" args iflag))))