xwinclip-Test07 does not work with XWin -query

Harold L Hunt II huntharo@msu.edu
Tue Jan 7 14:06:00 GMT 2003


Your advice consists of ``it would be better if someone had some time to 
polish some rough edges in xwinclip.''  Are you suggesting that you have 
some time to polish those rough edges?  As you said yourself, none of it 
is hard to do.

Harold

Joo-won Jung wrote:

>>Sanori,
>>
>>Let me tell you, I wrote xwinclip and I still don't fully understand how to
>>make it work well when using -query.
>>
>>I can tell you that running xhost on your Windows machine won't help
>>anything.  What you need to do is run xhost in a terminal that is running
>>within your -query session.  That should setup XWin.exe on your machine to
>>accept connections from local clients.  The reason you can run xhost on your
>>Windows machine is that not even xhost has permission to connect to XWin.exe
>>at that point, so xhost cannot modify the access control list.
>>    
>>
>
>I know that only the clients on XDM host have control on control
>list of the X server when I run X with '-query' option, and I did so.
>
>  
>
>>I hope that helps, let us know if it does.
>>
>>Harold
>>    
>>
>
>Now I found the problem. xwinclip.exe does not process '-display' option.
>I found this after seeing the source code of xwinclip.
>I think it would be better if xwinclip process '-display' option as
>other X clients do, or give error message if the option is not
>recognized.
>(Someone may say that it's the bash's fault since bash does not set
> DISPLAY environment variable.)
>
>I tried 'export DISPLAY=:0' and 'xwinclip' instead of doing
>'xwinclip -display :0', then it works. Of course, I did
>'xhost win_host_name' on the terminal before doing this. 
>
>One more feature request: It would be better if the option for silent
>or designate the log file.
>
>Anyway, thank you for xwinclip. It helps me a lot.
>
>I hope my tip help others.
>
>-Sanori
>
>  
>
>>-----Original Message-----
>>From: cygwin-xfree-owner@cygwin.com
>>[mailto:cygwin-xfree-owner@cygwin.com]On Behalf Of Joo-won Jung
>>Sent: Sunday, January 05, 2003 8:49 AM
>>To: cygwin-xfree@cygwin.com
>>Subject: xwinclip-Test07 does not work with XWin -query
>>
>>
>>Hello list,
>>
>>Thank you, the developers and users of XFree86-cygwin.
>>Most of the cases XFree86-cygwin works fine on my computer.
>>But, I want to tell a problem that I have got in stuck.
>>
>>I'm using Windows XP. I succeeded copy&paste text between Windows
>>and X window using xwinclip. But I failed copy&paste when I start X
>>with -query option. The error messages of xwinclip is as follows:
>>
>>	UnicodeSupport - Windows NT/2000/XP
>>	Could not open display, try: 1, sleeping: 4
>>	Could not open display, try: 2, sleeping: 4
>>	Could not open display, try: 3, sleeping: 4
>>	Failed opening the display, giving up
>>
>>I added my host to X control list, using "xhost" and tried
>>"xwinclip -display :0" but it gives same error message.
>>Since "xclipboard -display :0" worked, I bet I did not wrong
>>in X control list.
>>
>>I don't know how the xwinclip.exe works.
>>Please give me some information or pointers about this problem.
>>
>>-Sanori
>>    
>>
>
>
>  
>



More information about the Cygwin-xfree mailing list