From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Asynchronous shell command in Emacs Date: Wed, 18 Sep 2013 00:27:36 +0200 Message-ID: <20130917222736.GE16911@kuru.dyndns-at-home.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1379456888 5689 80.91.229.3 (17 Sep 2013 22:28:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2013 22:28:08 +0000 (UTC) To: Emacs help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 18 00:28:09 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 1VM3ke-0006hd-Vo for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Sep 2013 00:28:09 +0200 Original-Received: from localhost ([::1]:43630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VM3ke-0000TV-IS for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Sep 2013 18:28:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VM3kM-0000Rt-MZ for help-gnu-emacs@gnu.org; Tue, 17 Sep 2013 18:27:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VM3kE-0006xB-9U for help-gnu-emacs@gnu.org; Tue, 17 Sep 2013 18:27:50 -0400 Original-Received: from mail-ee0-x230.google.com ([2a00:1450:4013:c00::230]:38668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VM3kD-0006wE-QN for help-gnu-emacs@gnu.org; Tue, 17 Sep 2013 18:27:42 -0400 Original-Received: by mail-ee0-f48.google.com with SMTP id l10so3043921eei.21 for ; Tue, 17 Sep 2013 15:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=qP9ZbAOoHedUsan40qeivxRNkvPDRjeFeMUiRaG5tnQ=; b=sW0niN+V3W8vPgisIuoS5nK/RNWz1UFDk2zcFoJxUsB9UN1MLz2ZA390QB/IkTAV5I laUCmJC33sU89WRwUmZK0tPMa+qMjfBIFHaR/AYrAZ3SOh0t5Sz7hq/1HQJLA4QFwdpV 3JtDKHO/BbCX8MrYt0MC9vk0G2vSk2pCDBONY368lCpRy+r94MPpo+v+QhdLYgHn12MS wBdF43DSOov78igMhOEzP7dQKCLhknG8vBbvvTILBerlzr2He4WoBQTvvRs5qij6Hby5 5DdKB5VkwuJEv4B/YFbyOc3qn7U0mQDM1TmjBEiHailN3V9MTGog7HAPFoMdeNC8W6bz DTGA== X-Received: by 10.14.0.8 with SMTP id 8mr5666621eea.62.1379456859592; Tue, 17 Sep 2013 15:27:39 -0700 (PDT) Original-Received: from kuru.dyndns-at-home.com (sd44012d5.adsl.online.nl. [212.64.18.213]) by mx.google.com with ESMTPSA id p5sm54800287eeg.5.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 17 Sep 2013 15:27:38 -0700 (PDT) Content-Disposition: inline User-Agent: Mutt/1.5.21 (2012-12-30) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::230 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:93430 Archived-At: Hi, I am looking at a problem where xdg-open does not work when called asynchronously from Emacs (from `start-process-shell-command', or `shell-command' with a trailing &). It works just fine when called synchronously. So my question is, what are the differences between how Emacs does the two? I see the script runs successfully in both cases. I know this since I turn on tracing and see it exits with status 0 always; just the appropriate GUI application fails to open. Thanks for any thoughts. Cheers, -- Suvayu Open source is the future. It sets us free.