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: cut and paste xfree <-> windows


On Fri, Jan 02, 2004 at 02:12:10PM -0500, Greg Freemyer wrote:
> On Thu, 2004-01-01 at 13:28, Alexander Gottwald wrote:
> > jrc@chauviere.org wrote:
> > 
> > > Harold L Hunt II wrote :
> > > For all practical purposes, -clipboard does not work when using XDMCP.
> > > Is there any change about ?
> > 
> > use xwinclip.
> > 
> > 
> > NP: Letzte Instanz - Glockenrequiem
> 
> I saw this and the thread with Chris Green, and like Chris I still
> don'know what to do.
> 
> Is there a write-up that explicitely describes the setup and use of
> xwinclip with xdmcp? 
> 
I have finally got it working, my start up .BAT file to run an xdmcp
connection is as follows:-

    SET DISPLAY=192.168.13.25:0.0

    SET REMOTE_HOST=192.168.13.1

    SET CYGWIN_ROOT=\cygwin

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


    REM Cleanup after last run.

    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

    echo startxdmcp.bat - Starting on Windows NT/2000/XP

    start /B XWin -query %REMOTE_HOST%
    sleep 10
    start /B xwinclip


That sleep between starting XWin and xwinclip seems to be necessary
but now it does seem to work reasonably reliably.  I have fixed IP
addresses for the machines on my home network so the 192.168.13.25
will always be the same for the win2k machine.

-- 
Chris Green (chris@areti.co.uk)


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