public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Thiago Padilha <tpadilha84@gmail.com>
To: cygwin-xfree@cygwin.com
Subject: Re: Is there a way to spawn processes from the XWin login shell?
Date: Wed, 27 Mar 2013 15:52:00 -0000	[thread overview]
Message-ID: <CAAq2Xdp9Mzr4eOcZ1MN6-VaqGKekjwpEO1suYX38-kQ_-aj1Lg@mail.gmail.com> (raw)
In-Reply-To: <CAAq2XdoSeLNEraZDRtin01S+bS31DxfFyAZAXP1YjAge8rMQGQ@mail.gmail.com>

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 <tpadilha84@gmail.com> 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/


  reply	other threads:[~2013-03-27 15:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-23  0:02 Thiago Padilha
2013-03-27 15:52 ` Thiago Padilha [this message]
2013-03-27 17:36   ` Jon TURNEY
2013-03-27 19:37     ` Thiago Padilha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAq2Xdp9Mzr4eOcZ1MN6-VaqGKekjwpEO1suYX38-kQ_-aj1Lg@mail.gmail.com \
    --to=tpadilha84@gmail.com \
    --cc=cygwin-xfree@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).