all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Browsing dirs from Dired with graphical explorer
@ 2008-09-22  8:31 Sébastien Vauban
  2008-09-22 10:04 ` Tassilo Horn
       [not found] ` <mailman.19679.1222078001.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 16+ messages in thread
From: Sébastien Vauban @ 2008-09-22  8:31 UTC (permalink / raw)
  To: help-gnu-emacs-mXXj517/zsQ

Hello,

I would like some help with a snippet of code I've merged from
different sources:

--8<---------------cut here---------------start------------->8---
(defun my-browse-dir (dir-as-string)
  "Open the current directory in your OS's file manager."
  (interactive)
  (let ((file-manager
         (cond (running-ms-windows "explorer")
               (t "/usr/lib/kde4/bin/dolphin"))))
                  ;; `nautilus --no-desktop' or `gnome-open'
    (start-process-shell-command "browse"
                                 "*scratch*"
                                 (concat file-manager " " dir-as-string))))
--8<---------------cut here---------------end--------------->8---

I'd like to use that when in Dired mode: to be able to launch
the graphical file browser from the underlying OS.

My problem is: how to pass the current directory argument?

Next question: is there somehow a way not to be forced to
explicitly give the path to all possible executables under
Linux?  Some way to launch the file browser like with a `start'
or `open' command?

Best regards,
  Seb

-- 
Sébastien Vauban


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2008-09-24 17:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-22  8:31 Browsing dirs from Dired with graphical explorer Sébastien Vauban
2008-09-22 10:04 ` Tassilo Horn
2008-09-22 12:45   ` Lennart Borgman (gmail)
     [not found]   ` <mailman.19685.1222087548.18990.help-gnu-emacs@gnu.org>
2008-09-22 12:58     ` Sébastien Vauban
     [not found] ` <mailman.19679.1222078001.18990.help-gnu-emacs@gnu.org>
2008-09-22 12:05   ` Richard Riley
2008-09-22 13:06     ` Rupert Swarbrick
2008-09-22 13:37     ` Tassilo Horn
     [not found]     ` <mailman.19686.1222090826.18990.help-gnu-emacs@gnu.org>
2008-09-22 15:47       ` Richard Riley
2008-09-22 19:15         ` Tassilo Horn
     [not found]         ` <mailman.19711.1222111115.18990.help-gnu-emacs@gnu.org>
2008-09-22 22:07           ` Richard Riley
2008-09-23  7:58             ` Tassilo Horn
     [not found]             ` <mailman.19745.1222156700.18990.help-gnu-emacs@gnu.org>
2008-09-23 11:58               ` Richard Riley
2008-09-23 12:00                 ` Richard Riley
2008-09-24 17:28                   ` Richard Riley
2008-09-22 12:55   ` Rupert Swarbrick
2008-09-22 13:13   ` Sébastien Vauban

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.