Re: FW: How to create an icon to startx with no extra CMD.EXE window

2008-04-09 Thread Holger Krull

Siegfried Heintze (Aditi) schrieb:

I use:
E:\cygwin\bin\bash.exe -c -l 'run bash -c -l "CYGWIN=server Xwin.exe :0 -query 
192.168.11.1 -from 192.168.11.2 -once  -dpi 120 &" '



If you don't have cygserver running you should delete CYGWIN=server, if you 
don't need larger fonts delete -dpi 120


Very interesting. Could you kindly point me to the documentation? I removed the -query 
and the -from and the "Cygwin=server" and it was not working correctly. Since 
I'm running DHCP, I was not sure what to put for those IP addresses you are using.



Sorry, i didn't adapt it for local use, i'm using XDMCP to connect to another 
computer.
You probably want to try:
C:\cygwin\bin\bash.exe -c -l 'run bash -c -l "startxwin.sh" '
or
C:\cygwin\bin\bash.exe -c -l 'run bash -c -l "Xwin.exe :0 & export DISPLAY=:0.0; xterm;  
fvwm2 &" '
If you want a unix style fvwm window manager with background window.



--
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/



RE: FW: How to create an icon to startx with no extra CMD.EXE window

2008-04-09 Thread Siegfried Heintze (Aditi)

>I use:
>E:\cygwin\bin\bash.exe -c -l 'run bash -c -l "CYGWIN=server Xwin.exe :0 -query 
>192.168.11.1 -from 192.168.11.2 -once  -dpi 120 &" '

>If you don't have cygserver running you should delete CYGWIN=server, if you 
>don't need larger fonts delete -dpi 120

Very interesting. Could you kindly point me to the documentation? I removed the 
-query and the -from and the "Cygwin=server" and it was not working correctly. 
Since I'm running DHCP, I was not sure what to put for those IP addresses you 
are using.

Thanks,
Siegfried

--
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/



Re: FW: How to create an icon to startx with no extra CMD.EXE window

2008-04-09 Thread xerces8
If you just want a shell running, you can use this:
C:\cygwin\bin\rxvt.exe -sl 5000 -fn 20 -bg black -fg white -sr -e bash --login 
-i
(I have that as a shortcut in my start menu)

(it is not xterm, but rxvt. It works without X.)

Regards,
David

-Original Message-
From: "Siegfried Heintze (Aditi)" <[EMAIL PROTECTED]>
To: "cygwin-xfree@cygwin.com" 
Date: Tue, 8 Apr 2008 16:03:17 -0700
Subject: FW: How to create an icon to startx with no extra CMD.EXE window

> 
> Thank you for the responses regarding "-sb -sl 6000".
> 
> I had a quick launch icon that would execute "startx" in bash but that does 
> not seem to use the
> startxwin.sh or startxwin.bat files. So I change my icon in my quick launch 
> bar to this:
> 
> C:\cygwin\bin\bash.exe /usr/bin/X11/startxwin.sh
> 
> So this starts the xterm with scroll bars and (I assume) 6000 lines of 
> history. Hurray! Thanks!
> 
>  But I have this ugly console hanging around. When I kill it, it kills X as 
> well. Is there a way
> to have an icon that does not create a superfluous console window?
> 
> Thanks,
> Siegfried
> 
> --
> 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/
> 



--
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/



Re: FW: How to create an icon to startx with no extra CMD.EXE window

2008-04-09 Thread Holger Krull

Phil Betts schrieb:

Thomas Dickey wrote on Wednesday, April 09, 2008 1:35 AM::


On Tue, 8 Apr 2008, Siegfried Heintze (Aditi) wrote:


But I have this ugly console hanging around. When I kill it, it
kills X as well. Is there a way to have an icon that does not
create a superfluous console window?  

You could start an application (including xterm) which is initially
iconified.  That would move it out of sight.  This should work:

   xterm -iconic

The startxwin.sh script needs _something_ that is holding onto the
shell script, to prevent it from exiting.


I don't think I made myself clear! When I said "ugly console" I meant
the cmd.exe console (possibly running bash). I think you are talking
about the initial xterm. The initial xterm is not a problem. How can
I start X without running cmd.exe? 

hmm (I'm not where I can check).

However - I recall setting up some commands which use the Windows
"start" command with a "/min" option.



I'm not sure you can do this (easily) using startx, because the startx
mechanism relies on the script sticking around until the last client
exits.  The traditional (i.e. UNIX) server start-up would run a
window manager as a foreground task.  When the window manager exited,
the server shut down.

If you use startxwin.bat instead, this uses run.exe to start the server
in the background.  This leaves the script free to exit, closing the 
cmd window.  You will see the cmd window until the script exits, but 
this can be useful.  If you never want to see the cmd window, you can 
create a shortcut to the script and set it to start minimized in its 
property sheet.


I use:
E:\cygwin\bin\bash.exe -c -l 'run bash -c -l "CYGWIN=server Xwin.exe :0 -query 
192.168.11.1 -from 192.168.11.2 -once  -dpi 120 &" '

If you don't have cygserver running you should delete CYGWIN=server, if you 
don't need larger fonts delete -dpi 120

--
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/



RE: FW: How to create an icon to startx with no extra CMD.EXE window

2008-04-08 Thread Phil Betts
Thomas Dickey wrote on Wednesday, April 09, 2008 1:35 AM::

> On Tue, 8 Apr 2008, Siegfried Heintze (Aditi) wrote:
> 
 But I have this ugly console hanging around. When I kill it, it
 kills X as well. Is there a way to have an icon that does not
 create a superfluous console window?  
>>> 
>>> You could start an application (including xterm) which is initially
>>> iconified.  That would move it out of sight.  This should work:
>>> 
>>>xterm -iconic
>>> 
>>> The startxwin.sh script needs _something_ that is holding onto the
>>> shell script, to prevent it from exiting.
>>> 
>> 
>> I don't think I made myself clear! When I said "ugly console" I meant
>> the cmd.exe console (possibly running bash). I think you are talking
>> about the initial xterm. The initial xterm is not a problem. How can
>> I start X without running cmd.exe? 
> 
> hmm (I'm not where I can check).
> 
> However - I recall setting up some commands which use the Windows
> "start" command with a "/min" option.
> 

I'm not sure you can do this (easily) using startx, because the startx
mechanism relies on the script sticking around until the last client
exits.  The traditional (i.e. UNIX) server start-up would run a
window manager as a foreground task.  When the window manager exited,
the server shut down.

If you use startxwin.bat instead, this uses run.exe to start the server
in the background.  This leaves the script free to exit, closing the 
cmd window.  You will see the cmd window until the script exits, but 
this can be useful.  If you never want to see the cmd window, you can 
create a shortcut to the script and set it to start minimized in its 
property sheet.


Phil

--
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/



RE: FW: How to create an icon to startx with no extra CMD.EXE window

2008-04-08 Thread Thomas Dickey

On Tue, 8 Apr 2008, Siegfried Heintze (Aditi) wrote:


But I have this ugly console hanging around. When I kill it, it kills X as 
well. Is there a way to have an icon that does not create a superfluous console 
window?


You could start an application (including xterm) which is initially
iconified.  That would move it out of sight.  This should work:

   xterm -iconic

The startxwin.sh script needs _something_ that is holding onto the shell
script, to prevent it from exiting.



I don't think I made myself clear! When I said "ugly console" I meant
the cmd.exe console (possibly running bash). I think you are talking
about the initial xterm. The initial xterm is not a problem. How can I start X 
without running cmd.exe?


hmm (I'm not where I can check).

However - I recall setting up some commands which use the Windows "start" 
command with a "/min" option.


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--
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/



RE: FW: How to create an icon to startx with no extra CMD.EXE window

2008-04-08 Thread Siegfried Heintze (Aditi)
>> But I have this ugly console hanging around. When I kill it, it kills X as 
>> well. Is there a way to have an icon that does not create a superfluous 
>> console window?
>
>You could start an application (including xterm) which is initially
>iconified.  That would move it out of sight.  This should work:
>
>xterm -iconic
>
>The startxwin.sh script needs _something_ that is holding onto the shell
>script, to prevent it from exiting.
>

I don't think I made myself clear! When I said "ugly console" I meant
the cmd.exe console (possibly running bash). I think you are talking
about the initial xterm. The initial xterm is not a problem. How can I start X 
without running cmd.exe?

Thanks,
Siegfried

--
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/



Re: FW: How to create an icon to startx with no extra CMD.EXE window

2008-04-08 Thread Thomas Dickey

On Tue, 8 Apr 2008, Siegfried Heintze (Aditi) wrote:



Thank you for the responses regarding "-sb -sl 6000".

I had a quick launch icon that would execute "startx" in bash but that does not 
seem to use the startxwin.sh or startxwin.bat files. So I change my icon in my quick 
launch bar to this:

C:\cygwin\bin\bash.exe /usr/bin/X11/startxwin.sh

So this starts the xterm with scroll bars and (I assume) 6000 lines of history. 
Hurray! Thanks!

But I have this ugly console hanging around. When I kill it, it kills X as 
well. Is there a way to have an icon that does not create a superfluous console 
window?


You could start an application (including xterm) which is initially 
iconified.  That would move it out of sight.  This should work:


xterm -iconic

The startxwin.sh script needs _something_ that is holding onto the shell
script, to prevent it from exiting.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--
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/



FW: How to create an icon to startx with no extra CMD.EXE window

2008-04-08 Thread Siegfried Heintze (Aditi)

Thank you for the responses regarding "-sb -sl 6000".

I had a quick launch icon that would execute "startx" in bash but that does not 
seem to use the startxwin.sh or startxwin.bat files. So I change my icon in my 
quick launch bar to this:

C:\cygwin\bin\bash.exe /usr/bin/X11/startxwin.sh

So this starts the xterm with scroll bars and (I assume) 6000 lines of history. 
Hurray! Thanks!

 But I have this ugly console hanging around. When I kill it, it kills X as 
well. Is there a way to have an icon that does not create a superfluous console 
window?

Thanks,
Siegfried

--
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/