]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/browse-url.el (browse-url-xdg-open): Remove use of /bin/sh.
authorAndreas Schwab <schwab@linux-m68k.org>
Fri, 8 Oct 2010 17:32:14 +0000 (19:32 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Fri, 8 Oct 2010 17:32:14 +0000 (19:32 +0200)
lisp/ChangeLog
lisp/net/browse-url.el

index 9dfd7d289fdb217efebec5e3c6fd7e19441ebd3f..95810cb4d42128c2141546d7e4617f1811cb9774 100644 (file)
@@ -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/.
index 65b45aecf3e19cb20e80bf4847ea5b02bbdbcd01..5f50ddc096c834e89c4a87172cb34a0502954563 100644 (file)
@@ -937,10 +937,7 @@ Galeon, Konqueror, Netscape, Mosaic, Lynx in an xterm, and then W3."
 ;;;###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)