This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Is there a way to spawn processes from the XWin login shell?
- From: Thiago Padilha <tpadilha84 at gmail dot com>
- To: cygwin-xfree at cygwin dot com
- Date: Wed, 27 Mar 2013 12:52:39 -0300
- Subject: Re: Is there a way to spawn processes from the XWin login shell?
- References: <CAAq2XdoSeLNEraZDRtin01S+bS31DxfFyAZAXP1YjAge8rMQGQ at mail dot gmail dot com>
- Reply-to: cygwin-xfree at cygwin dot 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/