This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: [1.7] On checkX
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: cygwin-xfree at cygwin dot com
- Date: Fri, 04 Sep 2009 17:11:05 -0400
- Subject: Re: [1.7] On checkX
- References: <4A98F026.7070002@alice.it>
- Reply-to: cygwin-xfree at cygwin dot com
Angelo Graziosi wrote:
> Charles Wilson wrote:
>> Unfortunately, I can't reproduce.
>
> Ugh! I forgot to say that I start those scripts with links on desktop...
>
> For example:
>
> mkshortcut -AD \
> -n "${urxvt}" \
> -a "bash -l start_urxvt.sh" \
> -i /usr/bin/XWin.exe \
> -d "Console unicode" \
> /usr/bin/run.exe
Using a short cut to my script, just like your shortcut (except mine is
on my own desktop, not all-users'), I...can't reproduce your problem. WJJFM.
> Indeed, if I start the script from Cygwin.bat, there is not
> checkX.exe.stackdump in the HOME! It is created ONLY starting the script
> with the link...
>
> ...and, in that case, the lines:
>
> [...]
> while ! /usr/bin/checkX
> do
> printf "waiting for xserver to start\n"
> sleep 1
> done
> [...]
>
> cause a NON-empty checkX.exe.stackdump:
>
> $ cat checkX.exe.stackdump
> Exception: STATUS_ACCESS_VIOLATION at eip=6E7C3CD0
I don't know what to tell you. Please try to use the -debug options, as
I recommended before.
> Not only, also a bad interference between XWin and clipboard: trying to
> copy/paste (double click in urxvt shell), they hang and when I try to
> 'Restart Now' the PC, Windows says 'xwinclip has not finished yet...'
Also can't reproduce. WJFFM.
> Now, If I want start your script from the link, How can I capture the
> output?
>
> For example, I have tried modifying it with:
Try this:
====================================================
#!/bin/sh
export DISPLAY=127.0.0.1:0.0
let -a n=0
DBGLVL=1
start_XWin()
{
# Cleanup from last run.
rm -rf /tmp/.X11-unix
printf "starting xserver\n" >>~/checkX_${n}.log
XWin -multiwindow -clipboard -silent-dup-error 2>/dev/null &
}
/usr/bin/checkX --debug=$DBGLVL >~/checkX_${n}.log 2>&1 || start_XWin
n=`expr $n + 1`
while ! /usr/bin/checkX --debug=$DBGLVL >~/checkX_${n}.log 2>&1
do
printf "waiting for xserver to start [$n]\n" >>~/checkX_${n}.log
sleep 1
n=`expr $n + 1`
done
sleep 1
/usr/bin/urxvt-X &
====================================================
--
Chuck
--
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/