This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: WMaker crashes when starting with startxwin.bat


Hello,

I have just installed cygwin and everything is working fine except for one
small problem.
When I start up cygwin and load up Xwin via bash everything is fine, I have
2 xterms popup and a clock.
My xterms are set to start in my home dir.

My problem is loading Xwin via startxwin.bat.  I found this email in the
archives, and the settings here fixed my Signal 11 Xwin problem, and Xwin
loads up fine via the startxwin.bat, but when my xterms popup they don't
have the HOME var set.  I fixed this problem with the bash --login option.
I know this is because /etc/profile isn't read in the .bat.  Is there any
way to have the /etc/profile read, because I have other little in there I
would like to use.  I could live without them, but I was just curious.

Thanks,

Sergio

Hi Klaus

> yes, you're probably right. But now the tricky question:
> How can I change the windows home to point to my $HOME in cygwin to
solve
> that problem?

take my startxwin.bat as an example. Cygwin is installed on d:\cygwin. The
only customized lines are "SET HOME", "SET CYGWIN_ROOT", the rest is
standard startxwin.bat with different WM-calls REMmed on and off.

HTH
hjb


@echo off
D:
SET DISPLAY=127.0.0.1:0.0
SET HOME=/CYGDRIVE/D/cygwin/home/DV105

REM
REM The path in the CYGWIN_ROOT environment variable assignment assume
REM that Cygwin is installed in a directory called 'cygwin' in the root
REM directory of the current drive.  You will only need to modify
REM CYGWIN_ROOT if you have installed Cygwin in another directory.  For
REM example, if you installed Cygwin in \foo\bar\baz\cygwin, you will need

REM to change \cygwin to \foo\bar\baz\cygwin.
REM
REM This batch file will almost always be run from the same drive (and
REM directory) as the drive that contains Cygwin/XFree86, therefore you
will
REM not need to add a drive letter to CYGWIN_ROOT.  For example, you do
REM not need to change \cygwin to c:\cygwin if you are running this
REM batch file from the C drive.
REM

SET CYGWIN_ROOT=D:\cygwin

SET PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH%


REM
REM Cleanup after last run.
REM

if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0
del %CYGWIN_ROOT%\tmp\.X11-unix\X0

:CLEANUP-FINISH
if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\tmp\.X11-unix


REM
REM Startup the X Server, the twm window manager, and an xterm.
REM
...
skipped
....

if "%OS%" == "Windows_NT" goto OS_NT

REM Windows 95/98/Me
echo startxwin.bat - Starting on Windows 95/98/Me

goto STARTUP

:OS_NT

REM Windows NT/2000/XP
echo startxwin.bat - Starting on Windows NT/2000/XP

:STARTUP


REM
REM Startup the programs
REM

REM Startup the X Server.

REM start XWin %1
REM start XWin -fullscreen
start XWin  -rootless
REM start XWin -broadcast

REM Startup an xterm, using bash as the shell.
REM run xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e
/usr/bin/bash

REM setxkbmap de
REM Startup the twm window manager.

REM run twm
REM run fvwm2
REM run openbox
run wmaker

xrdb -merge .Xresources

REM Set a background color.

REM run xsetroot -solid aquamarine4

exit



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]