This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: modification of startx.bat not work
I know this is a fixed issue, but some comments below nonetheless, to tie
up loose ends.
On Wed, 26 Jul 2006, Dirk Schleicher wrote:
> Am Tue, 25 Jul 2006 20:04:53 -0500
> schrieb René Berber <r.berber@XXXXXXXX.XXX>:
<http://cygwin.com/acronyms/#PCYMTNQREAIYR>. Thanks.
> > René Berber wrote:
> > [snip]
> > > You probably can just run a Windows shortcut to XWin with all the
> > > parameters, and use .xinitrc or .xsession to start up SC.
> > [snip]
> >
> > I made a little experiment and the above sentence is not true: if I
> > start XWindows from an icon/shortcut (using "C:\cygwin\bin\run.exe
> > -p /usr/X11R6/bin XWin -multiwindow -clipboard -silent-dup-error -dpi
> > 100") XWin starts fine but my .xinitrc (and .xsession) is not used...
> > XWin does not know what user started it.
Naturally -- .xinitrc and .xsession are artifacts of xinit (and startx),
not XWin.
> > So to run the application I would also need an icon/shortcut for the
> > application.
>
> I found out that the .xinitrc parameters are used with startx. I start
> the normal bash and type in startx. This start Xserver and SC. And SC
> works fine.
> C:\cygwin\bin\run.exe -p /usr/X11R6/bin/ startx -display 127.0.0.1:0.0
> do not work because startx is a script not an .exe
Right, but
C:\cygwin\bin\run.exe -p /usr/X11R6/bin/ bash --login -c startx -display 127.0.0.1:0.0
will, because bash will know how to interpret the shebang (#!) in startx
and invoke the script appropriately. People often overlook this solution
and declare that it's impossible to start a script from a shortcut.
Or you could've used xinit, which *is* a .exe.
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!
"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"
--
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/