GNU bug report logs - #56013
28.1; "gio open" and "xdg-open" fail silently under eshell

Previous Next

Package: emacs;

Reported by: Jeff Kowalski <jeff.kowalski <at> gmail.com>

Date: Thu, 16 Jun 2022 06:27:02 UTC

Severity: normal

Merged with 75304

Found in versions 28.1, 29.4

Full log


Message #44 received at 56013 <at> debbugs.gnu.org (full text, mbox):

From: Jim Porter <jporterbugs <at> gmail.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>,
 Jeff Kowalski <jeff.kowalski <at> gmail.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 56013 <at> debbugs.gnu.org
Subject: Re: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under
 eshell
Date: Thu, 3 Oct 2024 16:46:35 -0700
On 10/3/2024 1:09 AM, Andreas Schwab wrote:
> On Okt 02 2024, Jeff Kowalski wrote:
> 
>> Recall we're still trying to get the "xdg-open file.txt" case to work
>> correctly.
> 
> This is not possible as long as eshell creates a new session for each
> command and closes it immediately after the command exits.  You can
> observe the same effect if you run "xterm -e 'xdg-open file.txt'".

I'm not sure there's a way to avoid creating a new session for each 
command, at least not without a bunch of changes to process.c (though if 
someone disagrees, I'd be happy for some pointers in the right 
direction). As a workaround, if you make sure that the I/O handles for 
"xdg-open" are all pipes, that should outsmart it, e.g.:

  echo | xdg-open <whatever> |& cat




This bug report was last modified 155 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.