This is the mail archive of the 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: X -broadcast

On Sun, 9 Jan 2005, Brett wrote:

> Hi,
> Have been using "X -broadcast" to connect to a XDM server on my network
> for months now.  However, when another user of cygwin tries, it doesn't
> work.  I've tested it on a couple different XP machines, each with
> Cygwin installed for ALL USERS.
> I can resolve this problem by removing the "/tmp/XWin.log" file
> manually.  It seems that this file is written by the last person to
> successfully start an X Window, and the permissions are 644.
> Maybe if the file was written 664, or a different file was written for
> each $LOGNAME, this problem might go away.
> Here is what I've come up with that works for me: a "startx" script to
> start X:
> ---------------------------------------------
> # startx
> rm -f /tmp/XWin.log
>   if [ $? -ne 0 ]; then
>     echo "File could not be deleted"
>     exit
>   fi
> X -broadcast > /dev/null 2>&1 &
> ---------------------------------------------
> I'd be grateful for thoughts on a better solution.

Have a separate /tmp for each user -- execute the following once for each
user account:

mount -fu "$USERPROFILE\\Local Settings\Temp" /tmp

and all of your users should be able to start X the regular way with no
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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