From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23273 invoked by alias); 25 Apr 2012 16:22:09 -0000 Received: (qmail 23240 invoked by uid 22791); 25 Apr 2012 16:22:03 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_TX,TW_YG X-Spam-Check-By: sourceware.org Received: from smtpout.karoo.kcom.com (HELO smtpout.karoo.kcom.com) (212.50.160.34) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Apr 2012 16:21:46 +0000 Received: from 213-152-38-55.dsl.eclipse.net.uk (HELO [192.168.1.105]) ([213.152.38.55]) by smtpout.karoo.kcom.com with ESMTP; 25 Apr 2012 17:21:44 +0100 Message-ID: <4F98249E.8010103@dronecode.org.uk> Date: Wed, 25 Apr 2012 16:22:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120420 Thunderbird/12.0 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com CC: kbrown@cornell.edu Subject: Re: dbus-launch --exit-with-session fails when run from .startxwinrc References: <4F8C224B.3090103@cornell.edu> <4F8C2388.7090900@cornell.edu> <4F96AFA3.8060704@cornell.edu> In-Reply-To: <4F96AFA3.8060704@cornell.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2012-04/txt/msg00094.txt.bz2 On 24/04/2012 14:50, Ken Brown wrote: > On 4/16/2012 9:50 AM, Ken Brown wrote: >> On 4/16/2012 9:44 AM, Ken Brown wrote: >>> The following problem occurs on my 64-bit Windows 7 system but not on my >>> XP system. >>> >>> I start the X server using the Start Menu shortcut [modified to add >>> -emulate3buttons] and a .startxwinrc with the following contents: >>> >>> eval `dbus-launch --sh-syntax --exit-with-session` >>> xterm >>> >>> Running ps in the resulting xterm window shows no dbus-launch or >>> dbus-daemon process. But I can give the same dbus-launch command in the >>> xterm window, and the processes start as expected. I'm attaching >>> cygcheck output and the XWin log. >>> >>> My hope in reporting this is that the problem I'm seeing (and the >>> difference between XP and Win7) is somehow related to the emacs problem >>> I've been trying to solve: >>> >>> http://cygwin.com/ml/cygwin-xfree/2012-04/msg00048.html >>> >>> Ken >>> >>> P.S. You'll see in the cygcheck output that I'm running a Cygwin >>> snapshot; but nothing changes if I revert to cygwin-1.7.13-1. >> >> I forgot to say that if I remove "--exit-with-session" from the command >> line in my .startxwinrc, then a dbus-daemon process does start. > > I tried modifying the X server shortcut to read > > C:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c '/usr/bin/startxwin.exe >>> /var/log/xwin/startxwin.log 2>&1' > > as suggested in a different thread, but that provides no information. The > resulting startxwin.log is virtually identical (with minor differences) to > XWin.0.log. > > In particular, there's no indication of what's happening when .startxwinrc is > processed. There's no output because ~/.startxwinrc generates no output. > For starters, it would really be helpful if someone could try to reproduce my > problem on a 64-bit Windows 7 system. At the moment, I don't even know if > there is a bug somewhere or simply a problem with my own system. Here's the > recipe: > > 1. Create a .startxwinrc file with the following contents: > > eval `dbus-launch --sh-syntax --exit-with-session` > xterm > > 2. Start the X server using the Start Menu shortcut. > > 3. In the resulting xterm window, give the "ps" command. If things are > working right, the output from ps should show a dbus-launch process and a > dbus-daemon process. > > These processes do appear on my XP system but not on my Windows 7 system. FWIW, it works on XP for me as well. I tried with the following ~/.startxwinrc: eval `dbus-launch --sh-syntax --exit-with-session | tee /dev/stderr` xterm ... which at least lets you see the pid of the dbus-daemon that is started. I'm not sure if --exit-with-session is correct with startxwin, since the startxwin process will not linger after it has started ~/.startxwinrc, and I don't know if stdin will remain open after it (and the process tree above it waiting for it) exits. I have this vague recollection that 'run' has to do different things on XP and W7, which might account for the different behaviour? -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/