This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: How do I start WM?
Try this:
Copy the shortcut as mentioned earlier in the email trail.
set the Target to be:
C:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c "/usr/bin/startx -- /usr/bin/Xwin.exe"
Note the double quotes around the last argument. Without them, Xwin.exe doesn't start on my box. startx also
would not invoke Xwin.exe on my box unless I explicitly called it ala above
Commmand line invocation-> $ startx -- /usr/bin/Xwin.exe
perhaps it's not reading the symlink properly (the default server is set as /usr/bin/X, which is symlinked to
/usr/bin/Xwin.exe) -- nope, explicitly setting default server to /usr/bin/Xwin.exe doesn't start it either via
a plain startx on the command line. setting startx to echo the eval of the invocation yields
xinit "/home/rthompso/.xinitrc" -- "/home/rthompso/.xserverrc" :0 -auth '/home/rthompso/.serverauth.5912'
aha -- my .xserverrc has:
#exec X -screen 0 1024x768x16 -engine 4 -ac -nowinkill -noreset -emulate3buttons 100
uncomment it and try again from command line a plain startx... xserver starts up in it's own window with my
.xinitrc programs running.
shut it down, and try my copy of the shortcut again, starts again.
Now that we've established that mine wasn't starting due to the invalid .xserverrc, reset the shortcut target to
C:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startx
and try it -> starts again
Pasted below is my .xinitrc (you said you don't have one in $HOME), you can try this one in your $HOME if you
want. It will open a couple of rxvt terms and and xterm. It is configured to startup the openbox window
manager. You MAY prefer to copy the /etc/X11/xinit/xinitrc to your $HOME/.xinitrc to use as your base.
cat .xinitrc
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
/usr/bin/openbox &
#twm &
#wmaker &
#/opt/gnome2/bin/gnome-session &
# start some nice programs
rxvt -d :0.0 -geometry 80x35+494+51 -sl 1500 -sr -fg lightblue -bg darkolivegreen &
rxvt -d :0.0 -geometry 80x20+294-0 -sl 1500 -sr -fg lightblue -bg darkolivegreen &
exec xterm -geometry 80x6+0+0 -name login
--
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/