From matt@codespunk.com Wed Feb 8 00:46:00 2017 From: matt@codespunk.com (Matt D.) Date: Wed, 08 Feb 2017 00:46:00 -0000 Subject: -displayfd outputting some garbage? Message-ID: <589A6A71.4000703@gmail.com> I have an xinit script which outputs the display id to a file with the following option: xinit .. -displayfd 3 3>$HOME/.display This outputs correctly '0' but appends 0x00 and 0x0A. Why is it outputting a null byte and this 0x0A? Matt D. -- 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/ From matt@codespunk.com Wed Feb 8 01:02:00 2017 From: matt@codespunk.com (Matt D.) Date: Wed, 08 Feb 2017 01:02:00 -0000 Subject: -displayfd outputting some garbage? In-Reply-To: <589A6A71.4000703@gmail.com> References: <589A6A71.4000703@gmail.com> Message-ID: <589A6E11.8060704@codespunk.com> This is causing issues where I try to perform: echo $(cat .display) Which results in: bash: warning: command substitution: ignored null byte in input 0 Matt D. On 2/7/2017 7:46 PM, Matt D. wrote: > I have an xinit script which outputs the display id to a file with the > following option: > > xinit .. -displayfd 3 3>$HOME/.display > > This outputs correctly '0' but appends 0x00 and 0x0A. Why is it > outputting a null byte and this 0x0A? > > > Matt D. -- 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/ From jon.turney@dronecode.org.uk Thu Feb 9 00:44:00 2017 From: jon.turney@dronecode.org.uk (Jon Turney) Date: Thu, 09 Feb 2017 00:44:00 -0000 Subject: -displayfd outputting some garbage? In-Reply-To: <589A6E11.8060704@codespunk.com> References: <589A6A71.4000703@gmail.com> <589A6E11.8060704@codespunk.com> Message-ID: <6112354f-7eac-2d9e-e059-9bf065ea4b42@dronecode.org.uk> On 08/02/2017 01:02, Matt D. wrote: > On 2/7/2017 7:46 PM, Matt D. wrote: >> I have an xinit script which outputs the display id to a file with the >> following option: >> >> xinit .. -displayfd 3 3>$HOME/.display Thanks for reporting this. For future issues, can I ask you to use the cygwin list, per [1] [1] https://cygwin.com/ml/cygwin-xfree-announce/2015-03/msg00001.html I hope you mean ' xinit -- -displayfd 3 3>$HOME/.display' >> This outputs correctly '0' but appends 0x00 and 0x0A. Why is it >> outputting a null byte and this 0x0A? Yeah, this seem to be a bug in xinit (which needs to insert itself into the displayfd pipeline to learn the display number for it's own purposes) $ X -displayfd 3 3>~/.display [...] $ xxd ~/.display 00000000: 300a 0. $ xinit -- -displayfd 3 3>~/.display [...] $ xxd ~/.display 00000000: 3000 0a 0.. > This is causing issues where I try to perform: > > echo $(cat .display) > > Which results in: > > bash: warning: command substitution: ignored null byte in input > 0 This warning is new in bash 4.4, I think. I think this is a just a warning though, and shouldn't actually cause any issues? -- Jon Turney Volunteer Cygwin/X X Server maintainer -- 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/ From gulliver.m.smith@gmail.com Sat Feb 11 22:14:00 2017 From: gulliver.m.smith@gmail.com (Gulliver Smith) Date: Sat, 11 Feb 2017 22:14:00 -0000 Subject: Menus from Fedora virtual machine off screen Message-ID: I don't know if this is a Fedora 25 question or a cygwin X question since I upgraded at the same time. Ever since my Fedora 25 upgrade, the menus from programs running on the Linux box using cygwin x as the X server appear off screen at the top left. It is impossible to use these menus. An example is Firefox'smenu, but this happens with many Linux programs. Is there a configuration option that I am missing in cygwin X? Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 1.19.1.0 OS: CYGWIN_NT-10.0 CountryPc 2.6.1(0.305/5/3) 2016-12-16 11:55 x86_64 OS: Windows 10 [Windows NT 10.0 build 14393] (Win64) Package: version 1.19.1-1 built 2017-01-16 XWin was started with the following command line: /usr/bin/X -multiwindow -listen tcp Fedora release 25 (Twenty Five) Thanks Gulliver -- 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/ From jon.turney@dronecode.org.uk Tue Feb 14 20:07:00 2017 From: jon.turney@dronecode.org.uk (Jon Turney) Date: Tue, 14 Feb 2017 20:07:00 -0000 Subject: Menus from Fedora virtual machine off screen In-Reply-To: References: Message-ID: On 11/02/2017 22:14, Gulliver Smith wrote: > I don't know if this is a Fedora 25 question or a cygwin X question > since I upgraded at the same time. > > Ever since my Fedora 25 upgrade, the menus from programs running on > the Linux box using cygwin x as the X server appear off screen at the > top left. It is impossible to use these menus. Thanks for reporting this. There have been a few other similar reports, so I'd like to understand what the problem is here. For future issues, can I ask you to use the cygwin list, per [1] [1] https://cygwin.com/ml/cygwin-xfree-announce/2015-03/msg00001.html > An example is Firefox'smenu, but this happens with many Linux programs. > > Is there a configuration option that I am missing in cygwin X? No, I think this is probably a bug, somewhere. > Fedora release 25 (Twenty Five) I built an x64 Fedora 25 VM and attempted to reproduce this problem, but with no success. Are you using a non-default visual theme? Can you attach an XWin.0.log file? I'm interested if you have a single or multiple monitor setup, and what the monitor geometry is. -- Jon Turney Volunteer Cygwin/X X Server maintainer -- 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/