This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: 6.7.0.0 XWin w/out -nodecoration running in background doesn'tdisplay anything
On Fri, 9 Apr 2004, Holger Krull wrote:
> > As cygwin provides a *nix-like environment, there IS a (shell)
> > solution. Would be the first problem which couldn't worked around :-)
>
> I'm not so shure about this. At least i didn't find a solution to get
> rid of the additional window, maybe someone else knows the trick.
> Starting in bash with setsid, screen or & didn't help. Even if you get
> back to a prompt, closing the shell means ending Xwin. Weird.
>
> Does anyone know howto start a cmd.exe in Windows without getting a new
> button in taskbar?
Sure. Call CreateProcess with appropriate flags, just like run.exe
does...
> >>XWin.exe... but the other solution is to just use bash so we can do
> >>"XWin &" instead of using start or run. Find whatever solution you need
>
> that's what i did up to now. But Xwin somehow keeps its connection to
> the starting environment if you don't use -nodecoration.
It might help to redirect the std{in,out,err} of the setsid'd process,
something like
setsid XWin </dev/null >/dev/null 2>&1
HTH,
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton