changeset 110858:a6ae19bc27ec

* net/browse-url.el (browse-url-xdg-open): Remove use of /bin/sh.
author Andreas Schwab <schwab@linux-m68k.org>
date Fri, 08 Oct 2010 19:32:14 +0200
parents 93079c0866aa
children 7aa4fdb60d57
files lisp/ChangeLog lisp/net/browse-url.el
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Oct 08 14:41:49 2010 +0200
+++ b/lisp/ChangeLog	Fri Oct 08 19:32:14 2010 +0200
@@ -1,3 +1,7 @@
+2010-10-08  Andreas Schwab  <schwab@linux-m68k.org>
+
+	* net/browse-url.el (browse-url-xdg-open): Remove use of /bin/sh.
+
 2010-10-08  Glenn Morris  <rgm@gnu.org>
 
 	* emacs-lisp/cl-compat.el, emacs-lisp/lmenu.el: Move to obsolete/.
--- a/lisp/net/browse-url.el	Fri Oct 08 14:41:49 2010 +0200
+++ b/lisp/net/browse-url.el	Fri Oct 08 19:32:14 2010 +0200
@@ -937,10 +937,7 @@
 ;;;###autoload
 (defun browse-url-xdg-open (url &optional new-window)
   (interactive (browse-url-interactive-arg "URL: "))
-  (call-process "/bin/sh" nil nil nil
-		"-c"
-		(concat "nohup xdg-open " (shell-quote-argument url)
-			">/dev/null 2>&1 </dev/null")))
+  (call-process "nohup" nil nil nil "xdg-open" url))
 
 ;;;###autoload
 (defun browse-url-netscape (url &optional new-window)