ArchWSL icon indicating copy to clipboard operation
ArchWSL copied to clipboard

Strange bug with running GUI applications

Open amoldybuffalo opened this issue 2 years ago • 8 comments

IMPORTANT Please read README and Docs before creating the issue.

Please fill out the below information: I have done all the recommended steps to run a gui on archwsl, which worked perfectly fine for me back when I was using ubuntu wsl.

  1. Install an x server on windows
  2. run: export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 in the .bashrc (yes, I am sure it is being read.
  3. install xorg-server and xorg-apps
  4. run the x server (vcxsrv) disabling access control and setting it to display 0
  5. run any gui app Unfortunately, step 5 fails silently. The application doesn't complain about not being able to connect, but no x server window pops up, and the x server says no clients are connected. To Reproduce Follow the previous steps. Attempt to run a GUI app

Expected behavior A clear and concise description of what you expected to happen. When I run a gui app in archwsl, and with vcxsrv running I expect a window with the application in it to pop up. Screenshots If applicable, add screenshots to help explain your problem.

Enviroment:

  • Windows build number: Microsoft Windows [Version 10.0.19043.1319]
  • Security Software: Only Windows defender and malwarebytes.
  • WSL version 1/2: wsl2
  • ArchWSL version: I apologize, but I couldn't find this
  • ArchWSL Installer type: appx
  • Launcher version: wsldl2, version 21082800 (amd64)

Additional context Add any other context about the problem here.

amoldybuffalo avatar Oct 31 '21 14:10 amoldybuffalo

is -ac used in VcXsrv?

dyharlan avatar Nov 03 '21 14:11 dyharlan

yes

On Wed, Nov 3, 2021 at 11:00 AM dyharlan @.***> wrote:

is -ac used in VcXsrv?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yuk7/ArchWSL/issues/257#issuecomment-959349705, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARHMFQ3FXS3M4FWWIKSNRATUKFE7BANCNFSM5HCLOMSQ .

amoldybuffalo avatar Nov 04 '21 01:11 amoldybuffalo

Hello?

amoldybuffalo avatar Nov 13 '21 21:11 amoldybuffalo

Hi, for me it is working with the following setup:

  • my xlaunch config:
<?xml version="1.0" encoding="UTF-8"?>
<XLaunch WindowMode="MultiWindow" ClientMode="NoClient" LocalClient="False" Display="0" LocalProgram="xcalc" RemoteProgram="xterm" RemotePassword="" PrivateKey="" RemoteHost="" RemoteUser="" XDMCPHost="" XDMCPBroadcast="False" XDMCPIndirect="False" Clipboard="True" ClipboardPrimary="False" ExtraParams="" Wgl="True" DisableAC="True" XDMCPTerminate="False"/>
  • content of my .zshrc/.bashrc
export WSL_ip=$(/mnt/c/Windows/System32/ipconfig.exe | grep "WSL" -A 10 | grep "IPv4" | grep -E -o "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)")
export DISPLAY="$WSL_ip:0.0"

First I had it similar like you but that was not always working for me. Depending if I was on a VPN connection on the host or not for example. Hope this will help you.

sleccese avatar Nov 22 '21 12:11 sleccese

Sadly, no. still nothing shows up in vcxsrv, and still no errors.

On Mon, Nov 22, 2021 at 7:59 AM sleccese @.***> wrote:

Hi, for me it is working with the following setup:

  • my xlaunch config:
  • content of my .zshrc/.bashrc

export WSL_ip=$(/mnt/c/Windows/System32/ipconfig.exe | grep "WSL" -A 10 | grep "IPv4" | grep -E -o "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)") export DISPLAY="$WSL_ip:0.0"

First I had it similar like you but that was not always working for me. Depending if I was on a VPN connection on the host or not for example. Hope this will help you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yuk7/ArchWSL/issues/257#issuecomment-975496251, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARHMFQ5D2WGOSXOGOYE6ESLUNI5BLANCNFSM5HCLOMSQ .

amoldybuffalo avatar Nov 23 '21 04:11 amoldybuffalo

hmm... Did you check the firewall settings?

yuk7 avatar Nov 24 '21 02:11 yuk7

I've tried running with every firewall entirely off.

On Tue, Nov 23, 2021, 9:53 PM yuk7 @.***> wrote:

hmm... Did you check the firewall settings?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yuk7/ArchWSL/issues/257#issuecomment-977452319, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARHMFQZSP77YLZ77CLMWI63UNRHTTANCNFSM5HCLOMSQ .

amoldybuffalo avatar Nov 24 '21 13:11 amoldybuffalo

I've tried running with every firewall entirely off. On Tue, Nov 23, 2021, 9:53 PM yuk7 @.***> wrote: hmm... Did you check the firewall settings? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#257 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARHMFQZSP77YLZ77CLMWI63UNRHTTANCNFSM5HCLOMSQ .

the firewall access must be public access , did you check it before ?

fdciabdul avatar Nov 30 '21 19:11 fdciabdul