From: Richard Riley <rileyrgdev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Browsing dirs from Dired with graphical explorer
Date: Tue, 23 Sep 2008 00:07:30 +0200 [thread overview]
Message-ID: <gb94tk$mr$1@registered.motzarella.org> (raw)
In-Reply-To: mailman.19711.1222111115.18990.help-gnu-emacs@gnu.org
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)
next prev parent reply other threads:[~2008-09-22 22:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='gb94tk$mr$1@registered.motzarella.org' \
--to=rileyrgdev@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.