From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20264 invoked by alias); 27 Mar 2013 16:41:00 -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 20020 invoked by uid 89); 27 Mar 2013 16:40:52 -0000 X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_TX autolearn=ham version=3.3.1 Received: from nm3-vm0.bt.bullet.mail.ird.yahoo.com (HELO nm3-vm0.bt.bullet.mail.ird.yahoo.com) (212.82.108.88) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 27 Mar 2013 16:40:50 +0000 Received: from [212.82.108.229] by nm3.bt.bullet.mail.ird.yahoo.com with NNFMP; 27 Mar 2013 16:40:48 -0000 Received: from [217.146.189.77] by tm2.bt.bullet.mail.ird.yahoo.com with NNFMP; 27 Mar 2013 16:40:47 -0000 Received: from [127.0.0.1] by smtp827.mail.ird.yahoo.com with NNFMP; 27 Mar 2013 16:40:47 -0000 X-Yahoo-SMTP: u.JgLvyswBBMp9ZJJfsX14qmYb3T2ivhMAr6OupnxLpNQEFZ9g-- X-Rocket-Received: from [192.168.1.73] (jon.turney@109.155.6.100 with plain) by smtp827.mail.ird.yahoo.com with SMTP; 27 Mar 2013 09:40:47 -0700 PDT Message-ID: <51532129.6070603@dronecode.org.uk> Date: Wed, 27 Mar 2013 17:36:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com CC: tpadilha84@gmail.com Subject: Re: Is there a way to spawn processes from the XWin login shell? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-03/txt/msg00026.txt.bz2 On 23/03/2013 00:02, Thiago Padilha wrote: > XWin uses a login shell to configure its environment when it starts > up, and processes spawned from the tray icon inherit XWin environment > so they don't have to be spawned from login shells. Is there a way to > achieve the same effect without using a tray icon? Yes. > For example, can I have a desktop shortcut that launches a terminal > emulator with a simple interactive(non-login) shell and still have it > inherit the currently running XWin environment like it was started > from the tray icon? To inherit implies that it is a child of XWin, so no. However, you can create a process with an identical login environment by requesting the shell to create a login environment. On 27/03/2013 15:52, Thiago Padilha wrote: > Actually, I use windows shortcut with the following command line: > C:\cygwin\bin\run.exe /usr/bin/zsh -l -c 'exec startxwin' > > I'm guessing the startxwin is responsible for setting up the login > environment. Still, the only way to start processes inheriting from > the login shell seems to be by using the tray icon. Reading 'man zsh' would save you having to guess. The login environment is nothing to do with startxwin. You are requesting zsh to create the login environment with the '-l' flag. -- 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/