diff lisp/net/browse-url.el @ 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 a9f5356546ca
children 1b90af51024f
line wrap: on
line diff
--- 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)