[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Browsing dirs from Dired with graphical explorer
From: |
Richard Riley |
Subject: |
Re: Browsing dirs from Dired with graphical explorer |
Date: |
Tue, 23 Sep 2008 00:07:30 +0200 |
User-agent: |
Emacs 22.2.1/No Gnus v0.11 |
Tassilo Horn <tassilo@member.fsf.org> writes:
> Richard Riley <rileyrgdev@gmail.com> writes:
>
> Hi Richard,
>
>> If I "xdg-open ." from the command line it works great.
>>
>> If I change xdg-open for nautilus in the code below it works. (Using
>> nautilus that is).
>>
>> But using xdk-open there it does not work for me (debian). Does it
>> work on your Linux install?
>
> Yes, it works here (Gentoo GNU/Linux). If point is on a directory it
> opens thunar (the XFCE file manager), for files it uses another
> appropriate application.
Hmm. No joy here on Debian.
shell-command worked though but only for directories. For files the
cursor sat spinning - possibly because the process was waiting for
emacsclient to respond?
(defun dired-open-externally ()
"Open the current directory in your OS's file manager."
(interactive)
(let ((fileobject (dired-get-file-for-visit)))
; (start-process "dired-external" nil "/usr/bin/xdg-open"
"http://www.freedesktop.org/")
(shell-command (concat "xdg-open" " " fileobject))
; (start-process-shell-command "xdg" nil "/usr/bin/xdg-open"
"www.ibm.com")
)
)
(define-key dired-mode-map (kbd "e") 'dired-open-externally)
- Browsing dirs from Dired with graphical explorer, Sébastien Vauban, 2008/09/22
- Message not available
- Re: Browsing dirs from Dired with graphical explorer, Richard Riley, 2008/09/22
- Re: Browsing dirs from Dired with graphical explorer, Rupert Swarbrick, 2008/09/22
- Re: Browsing dirs from Dired with graphical explorer, Tassilo Horn, 2008/09/22
- Message not available
- Re: Browsing dirs from Dired with graphical explorer, Richard Riley, 2008/09/22
- Re: Browsing dirs from Dired with graphical explorer, Tassilo Horn, 2008/09/22
- Message not available
- Re: Browsing dirs from Dired with graphical explorer,
Richard Riley <=
- Re: Browsing dirs from Dired with graphical explorer, Tassilo Horn, 2008/09/23
- Message not available
- Re: Browsing dirs from Dired with graphical explorer, Richard Riley, 2008/09/23
- Re: Browsing dirs from Dired with graphical explorer, Richard Riley, 2008/09/23
- Re: Browsing dirs from Dired with graphical explorer, Richard Riley, 2008/09/24
Message not available
Message not available