[Bug 59568] New: X11 applications do not work in Cygwin
http://bugs.winehq.org/show_bug.cgi?id=59568 Bug ID: 59568 Summary: X11 applications do not work in Cygwin Product: Wine Version: 11.5 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@list.winehq.org Reporter: winehq@regd.hamishmb.com Distribution: --- X11 applications do not work in Cygwin, claiming they cannot access the display, even if $DISPLAY is set correctly. They just say they cannot access the X display, and ask if $DISPLAY is set correctly. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59568 Hamish McIntyre-Bhatty <winehq@regd.hamishmb.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq@regd.hamishmb.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59568 Bernhard Übelacker <bernhardu@mailbox.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org --- Comment #1 from Bernhard Übelacker <bernhardu@mailbox.org> --- Hello, are you trying to use the Cygwin X-server? Or are you trying to use the X-server of your regular Linux desktop? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59568 --- Comment #2 from Hamish McIntyre-Bhatty <winehq@regd.hamishmb.com> --- Hi there, I'm trying to use the X server of my regular Linux desktop. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59568 Austin English <austinenglish@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com --- Comment #3 from Austin English <austinenglish@gmail.com> --- Maybe not the issue, but potentially. Have you tried 'xhost +' on the linux host/XServer side? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59568 --- Comment #4 from Bernhard Übelacker <bernhardu@mailbox.org> --- I did a few tests. First the regular Linux desktop's Xauthority file is outside of the cygwin home directory. Unfortunately pointing the environment there did not work for me: $ wine 'c:\cygwin64\bin\bash.exe' --login -i -c \ "DISPLAY=:0 /usr/bin/xlogo" Error: Can't open display: :0 $ wine 'c:\cygwin64\bin\bash.exe' --login -i -c \ "DISPLAY=:0 XAUTHORITY=/cygdrive/z/home/benutzer/.Xauthority /usr/bin/xlogo" Error: Can't open display: :0 Therefore tried to go through the network path. But nowadays distributions may have by default the TCP port switched off. In my case for the slim login manager I switched it on this way: # nano /etc/slim.conf -xserver_arguments -nolisten tcp -deferglyphs 16 +xserver_arguments -deferglyphs 16 # systemctl stop slim # systemctl start slim Now the TCP port is open: # netstat -anp --tcp | grep -E "tcp.*$(pidof Xorg)" tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 9941/Xorg tcp6 0 0 :::6000 :::* LISTEN 9941/Xorg And allow access to anyone (!): $ xhost + access control disabled, clients can connect from any host Now following worked for me: DISPLAY=:0 wine 'c:\cygwin64\bin\xlogo.exe' Therefore I guess this bug should be closed either worksforme or invalid? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59568 --- Comment #5 from Bernhard Übelacker <bernhardu@mailbox.org> --- (In reply to Bernhard Übelacker from comment #4)
# nano /etc/slim.conf -xserver_arguments -nolisten tcp -deferglyphs 16 +xserver_arguments -deferglyphs 16
Correction, I needed this: # nano /etc/slim.conf -xserver_arguments -nolisten tcp -deferglyphs 16 +xserver_arguments -listen tcp -deferglyphs 16 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59568 --- Comment #6 from Hamish McIntyre-Bhatty <winehq@regd.hamishmb.com> --- Thanks for the tips. Unfortunately, I can't get this to work with lightdm on LMDE 7, even following the answer here doesn't seem to do anything: https://www.reddit.com/r/linuxquestions/comments/gnjdyg/how_to_pass_options_... Any more advice? I have found if I install the Vcxsrv X server in wine and put it in fullscreen mode that it works, however, so this is sort of a solved problem for me now anyway. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59568 --- Comment #7 from Bernhard Übelacker <bernhardu@mailbox.org> --- (In reply to Hamish McIntyre-Bhatty from comment #6)
Thanks for the tips. Unfortunately, I can't get this to work with lightdm on LMDE 7, even following the answer here doesn't seem to do anything: https://www.reddit.com/r/linuxquestions/comments/gnjdyg/ how_to_pass_options_to_xserver_using_lightdm/
Any more advice?
The internet returns for lightdm there may be a /etc/lightdm/lightdm.conf, where following lines could help xserver-allow-tcp=true xserver-command=X -listen tcp
I have found if I install the Vcxsrv X server in wine and put it in fullscreen mode that it works, however, so this is sort of a solved problem for me now anyway.
Cygwin brings already an X server just - Install the package xinit, due to [1]. - Unset XAUTHORITY, because our bash inherited that from the linux environment. Having the cygwin X server run with DISPLAY=:0 from the linux environment should be no problem. - Start the server by startxwin, see [2]. wine 'c:\cygwin64\bin\bash.exe' --login -i $ unset XAUTHORITY $ startxwin & $ sleep 10s $ xlogo & [1] https://x.cygwin.com/ [2] https://x.cygwin.com/docs/ug/cygwin-x-ug.html So it should not be needed to install an external X server. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59568 --- Comment #8 from Hamish McIntyre-Bhatty <winehq@regd.hamishmb.com> --- Thanks, I should have checked the contents of lightdm.conf more carefully, it's now working with Linux's X11 server with "xhost +" Happy to close this now as invalid if that's fine with everyone else. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59568 Bernhard Übelacker <bernhardu@mailbox.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #9 from Bernhard Übelacker <bernhardu@mailbox.org> --- Hello, thanks for confirming and providing feedback, so closing this one. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla