From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 746 invoked by alias); 27 Mar 2013 15:52:52 -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 725 invoked by uid 89); 27 Mar 2013 15:52:45 -0000 X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_TX autolearn=ham version=3.3.1 Received: from mail-la0-f45.google.com (HELO mail-la0-f45.google.com) (209.85.215.45) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 27 Mar 2013 15:52:42 +0000 Received: by mail-la0-f45.google.com with SMTP id er20so15989630lab.18 for ; Wed, 27 Mar 2013 08:52:40 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.112.26.10 with SMTP id h10mr10559065lbg.63.1364399560036; Wed, 27 Mar 2013 08:52:40 -0700 (PDT) Received: by 10.114.18.48 with HTTP; Wed, 27 Mar 2013 08:52:39 -0700 (PDT) In-Reply-To: References: Date: Wed, 27 Mar 2013 15:52:00 -0000 Message-ID: Subject: Re: Is there a way to spawn processes from the XWin login shell? From: Thiago Padilha To: cygwin-xfree@cygwin.com Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2013-03/txt/msg00023.txt.bz2 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. It would be nice to have a startxwin flag that did that, eg: startxwin -command 'urxvtc -e zsh' # instead of starting a new xwin instance, this would send a command to be spawned by the running login shell which would have the same effect as select a .XWinrc menu entry with the following 'urxvtc -e zsh' On Fri, Mar 22, 2013 at 9:02 PM, 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? > > 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? -- 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/