From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: gvfs-open in eshell/shell-command Date: Thu, 07 Mar 2013 10:54:26 +0000 Message-ID: <87txon32fx.fsf_-_@zerg32.ncl.ac.uk> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1362719568 24492 80.91.229.3 (8 Mar 2013 05:12:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Mar 2013 05:12:48 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 08 06:13:13 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UDpcG-0007Cp-N5 for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Mar 2013 06:13:12 +0100 Original-Received: from localhost ([::1]:46906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDpbu-0004kC-Qu for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Mar 2013 00:12:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDYT4-0001rv-23 for help-gnu-emacs@gnu.org; Thu, 07 Mar 2013 05:54:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDYT2-0005Rw-0c for help-gnu-emacs@gnu.org; Thu, 07 Mar 2013 05:54:33 -0500 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:54729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDYT1-0005Pw-RA for help-gnu-emacs@gnu.org; Thu, 07 Mar 2013 05:54:31 -0500 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129]) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1UDYSx-0007yS-Dl for help-gnu-emacs@gnu.org; Thu, 07 Mar 2013 10:54:27 +0000 Original-Received: from localhost (zerg32.ncl.ac.uk [10.66.65.18]) (authenticated bits=0) by smtpauth-vm.ncl.ac.uk (8.13.8/8.13.8) with ESMTP id r27AsQbv019305 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 7 Mar 2013 10:54:26 GMT In-Reply-To: (Barry Margolin's message of "Wed, 6 Mar 2013 05:39:18 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 X-Mailman-Approved-At: Fri, 08 Mar 2013 00:12:02 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89410 Archived-At: 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