all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: phillip.lord@newcastle.ac.uk (Phillip Lord)
To: <help-gnu-emacs@gnu.org>
Subject: gvfs-open in eshell/shell-command
Date: Thu, 07 Mar 2013 10:54:26 +0000	[thread overview]
Message-ID: <87txon32fx.fsf_-_@zerg32.ncl.ac.uk> (raw)
In-Reply-To: <barmar-F1D9DE.05391806032013@news.eternal-september.org> (Barry Margolin's message of "Wed, 6 Mar 2013 05:39:18 -0500")


I'm attempting to get gvfs-open to work in eshell. This is a little
gnome utility that opens a file in what ever application it's supposed
to be launched in. I use it frequently as I normally navigate
directories at the terminal, then use this to DWIM with a file. 

In *shell* this works fine. You just run the command, everybody is
happy. In *eshell* not a thing. Nothing pops up, nothing appears to
happen. 

M-x shell-command does work, although Emacs halts while whatever
application it launches exists. M-x shell-command with an "&" fails,
presumable for the same reason as *eshell* does. On the command line,
gvfs-open returns immediately, and does not block which the application
is open. So, clearly it's not eshell per se. I am guessing that child
processes are dying when gvfs-open closes. 

So far my best attempt is:

(defun eshell/open (&rest args)
  (shell-command (format "gvfs-open %s;sleep 3d &" 
                         (mapconcat 'identity args " "))))

Not good. 

Stuck, no ideas left, help gratefully recieved. 

Phil



  reply	other threads:[~2013-03-07 10:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.21530.1362559820.855.help-gnu-emacs@gnu.org>
2013-03-06 10:39 ` About traditional Lisp primitives Barry Margolin
2013-03-07 10:54   ` Phillip Lord [this message]
2013-03-12 13:48     ` gvfs-open in eshell/shell-command Michael Albinus
     [not found]     ` <mailman.21924.1363096112.855.help-gnu-emacs@gnu.org>
2013-03-14 17:42       ` politza
2013-03-18 12:19         ` Phillip Lord

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=87txon32fx.fsf_-_@zerg32.ncl.ac.uk \
    --to=phillip.lord@newcastle.ac.uk \
    --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.