From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Bug: can not start a w32 GUI program from Emacs Date: Wed, 27 Dec 2006 03:30:09 +0100 Message-ID: <4591DAB1.6050400@gmail.com> References: <4591C075.3040905@gmail.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167186655 27684 80.91.229.10 (27 Dec 2006 02:30:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Dec 2006 02:30:55 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 27 03:30:53 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GzOZ7-0001er-PU for ged-emacs-devel@m.gmane.org; Wed, 27 Dec 2006 03:30:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GzOZ7-0008V4-6d for ged-emacs-devel@m.gmane.org; Tue, 26 Dec 2006 21:30:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GzOYS-00080V-LX for emacs-devel@gnu.org; Tue, 26 Dec 2006 21:30:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GzOYP-0007vQ-PL for emacs-devel@gnu.org; Tue, 26 Dec 2006 21:30:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GzOYP-0007un-A5 for emacs-devel@gnu.org; Tue, 26 Dec 2006 21:30:05 -0500 Original-Received: from [80.76.149.212] (helo=ch-smtp01.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GzOYO-0007Be-Re for emacs-devel@gnu.org; Tue, 26 Dec 2006 21:30:05 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:64171 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GzOYN-0006ft-3l for emacs-devel@gnu.org; Wed, 27 Dec 2006 03:30:03 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: Emacs Devel In-Reply-To: <4591C075.3040905@gmail.com> X-Antivirus: avast! (VPS 0662-2, 2006-12-26), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1GzOYN-0006ft-3l. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1GzOYN-0006ft-3l 259f5296e3d2c3ee264caaf68f7de5a1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64315 Archived-At: Lennart Borgman (gmail) wrote: > I have been trying different ways to start explorer.exe from Emacs on > w32. I can not find any way that works. It is a quite annoying bug. > > I suspect this has something to do with the code in w32proc.c that defines > > start.hStdInput = GetStdHandle (STD_INPUT_HANDLE); > start.hStdOutput = GetStdHandle (STD_OUTPUT_HANDLE); > start.hStdError = GetStdHandle (STD_ERROR_HANDLE); > > This is done even if Emacs thinks it is a GUI app. Is this the problem? > Why is this handles set also for GUI programs. It seems to be more complicated than I thought. Before I could not start for example Windows Explorer by (call-process "explorer.exe" nil 0 nil ".") (call-process "cmd.exe" nil 0 nil "/c" "explorer .") (start-process "some name" nil "cmd.exe" "/c" "explorer.exe" ".") None of them worked. A window was opened, but it was blank or rather transparent. And in Task Manager was windows did not have the Explorer icon. Now, after reboot they all work. Something is however wrong, but what? This is on Windows XP (all the latest patches applied of course), using CVS Emacs a few days old.