From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8659 invoked by alias); 23 Dec 2014 19:17:37 -0000 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 Received: (qmail 8645 invoked by uid 89); 23 Dec 2014 19:17:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f172.google.com Received: from mail-wi0-f172.google.com (HELO mail-wi0-f172.google.com) (209.85.212.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 23 Dec 2014 19:17:34 +0000 Received: by mail-wi0-f172.google.com with SMTP id n3so11767662wiv.5 for ; Tue, 23 Dec 2014 11:17:31 -0800 (PST) X-Received: by 10.194.63.198 with SMTP id i6mr54593153wjs.90.1419362251314; Tue, 23 Dec 2014 11:17:31 -0800 (PST) Received: from [192.168.0.5] (ppp-193-167.32-151.iol.it. [151.32.167.193]) by mx.google.com with ESMTPSA id q10sm18962175wjx.34.2014.12.23.11.17.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Dec 2014 11:17:30 -0800 (PST) Message-ID: <5499BFC1.2030006@gmail.com> Date: Tue, 23 Dec 2014 19:17:00 -0000 From: Marco Atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: Need help to replicate old behavior of my X setup scripts with latest Xfree86 update References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00058.txt.bz2 On 12/23/2014 7:24 PM, Ben Richards wrote: > Up until the recent update to xinit-1.3.4-1 which overhauled X session > handling, I had my session set up nicely for my purposes. With the > following code in my .zshrc and an empty .startxwinrc, when I launched > Cygwin, Xwin.exe would start on display :0.0, it would set the > $DISPLAY variable, and automatically kill the X server when I exited > that terminal. I like mintty so this let me use that as my shell. > > .zshrc contents: > ============= > startxwin &> xserver.log > x_start_success=$? > if [[ $x_start_success == 0 ]]; then > export DISPLAY=:0.0 > > pid=`ps | grep '/usr/bin/XWin' | awk '{print $1;}'` > alias kill_xwin="kill $pid" > if [[ $TMUX == "" ]] && [[ $x_start_success == 0 ]]; then > alias exit="kill $pid ; \exit" > fi > fi > > The aforementioned update disrupted this flow so I’m wondering if > anyone has any suggestions on how I can regain a similar sort of > functionality. I don’t like using xterm in Cygwin and would like to > keep using mintty as my main terminal interface. try putting "sleep inf" in .startxwinrc It should simulate the old behaviour Regards -- 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/