This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: xinitrc final command with -multiwindow
- From: Igor Peshansky <pechtcha at cs dot nyu dot edu>
- To: jdavidb at goreadthebible dot com, cygwin-xfree at cygwin dot com
- Date: Wed, 21 Mar 2007 11:22:37 -0400 (EDT)
- Subject: Re: xinitrc final command with -multiwindow
- References: <200703210647.l2L6lt4D016474@rs34.luxsci.com>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree at cygwin dot com
<http://cygwin.com/acronyms/#PCYMTWLL>. Thanks.
On Wed, 21 Mar 2007, J. David Blackstone wrote:
> Since X exits when the xinitrc process terminates, xinitrc needs to
> finish by starting a program that will run for the duration of my X
> session. Traditionally this is a window manager, but with -multiwindow
> a window manager is already running. So with -multiwindow the usual
> course of action is to exec an xterm. But when that xterm exits, so
> does X. Unfortunately I'm very prone to getting that magic xterm mixed
> up with all my others, and shutting down my whole session without
> intending to. Also, I don't want that xterm because I have my XWinrc
> set up to run every command that I want to run (mostly a series of
> xterms that ssh to other servers, as well as a local xterm, of course).
>
> I just moved to a new machine at work, and managed to back up
> everything I needed except my xinitrc. Somehow I had figured out what
> to exec at the end of xinitrc to avoid having that magic xterm, but I
> can't remember what I did! I think I found it on a Cygwin mailing list,
> probably three years ago. But tonight I can find no reference to it at
> all.
>
> I know that for a time I just ended xinitrc with a loop that did a
> sleep 60 or something over and over again. But that was awkward and had
> problems. At one point I started up xclock or something.
>
> Does anyone know what the standard suggestion for the last command of
> xinitrc is when you cannot run a window run a window manager and you do
> not want to run an xterm or anything else that clutters up the task bar?
> It'd be nice if sleep just had an option to sleep indefinitely until
> killed (I exit from the XWinrc menu), but that doesn't seem to be
> available.
sleep 10000d should do it -- I doubt your computer will last that long.
:-)
Or you could use the -noreset X option.
HTH,
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Freedom is just another word for "nothing left to lose"... -- Janis Joplin
--
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/