From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: gvfs-open in eshell/shell-command Date: Tue, 12 Mar 2013 14:48:12 +0100 Message-ID: <8738w0raoz.fsf@gmx.de> References: <87txon32fx.fsf_-_@zerg32.ncl.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363096127 27705 80.91.229.3 (12 Mar 2013 13:48:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Mar 2013 13:48:47 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: phillip.lord@newcastle.ac.uk (Phillip Lord) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 12 14:49:11 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 1UFPZk-0001oy-0j for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Mar 2013 14:49:08 +0100 Original-Received: from localhost ([::1]:37371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFPZN-0003Am-Mn for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Mar 2013 09:48:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFPZ3-0002zV-Lw for help-gnu-emacs@gnu.org; Tue, 12 Mar 2013 09:48:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFPYw-0000SG-Op for help-gnu-emacs@gnu.org; Tue, 12 Mar 2013 09:48:25 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:52934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFPYw-0000Rh-GM for help-gnu-emacs@gnu.org; Tue, 12 Mar 2013 09:48:18 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.12]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0Ld330-1Ufufw1bns-00i9w4 for ; Tue, 12 Mar 2013 14:48:16 +0100 Original-Received: (qmail invoked by alias); 12 Mar 2013 13:48:15 -0000 Original-Received: from p57BB98CB.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.203] by mail.gmx.net (mp012) with SMTP; 12 Mar 2013 14:48:15 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+kMnJCylukerTgLhGVKKCmefXPe1Xp2LFqCgMJsW aabuTmM8jeFMny In-Reply-To: <87txon32fx.fsf_-_@zerg32.ncl.ac.uk> (Phillip Lord's message of "Thu, 07 Mar 2013 10:54:26 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 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:89486 Archived-At: phillip.lord@newcastle.ac.uk (Phillip Lord) writes: > 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. Try in both *shell* and *eshell* the command with debug output: G_DBUS_DEBUG=all gvfs-open ~/.emacs When you compare the output, it starts to differ significantly when it comes to file descriptors. I have no clue, why. Maybe you can find something more. > So far my best attempt is: > > (defun eshell/open (&rest args) > (shell-command (format "gvfs-open %s;sleep 3d &" > (mapconcat 'identity args " ")))) > > Not good. When I wrap the gvfs-open call into a shell in eshell, I get ~ $ *sh -c gvfs-open ~/.emacs gvfs-open: missing locations Try "gvfs-open --help" for more information. I don't know gvfs-open by heart, and I also don't know whether this is related to the problem. > Stuck, no ideas left, help gratefully recieved. > > Phil Best regards, Michael.