yuk7 / ArchWSL

ArchLinux based WSL Distribution. Supports multiple install.
https://git.io/archwsl
MIT License
6.83k stars 198 forks source link

Strange bug with running GUI applications #257

Open amoldybuffalo opened 2 years ago

amoldybuffalo commented 2 years ago

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:

Additional context Add any other context about the problem here.

dyharlan commented 2 years ago

is -ac used in VcXsrv?

amoldybuffalo commented 2 years ago

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 commented 2 years ago

Hello?

sleccese commented 2 years ago

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

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.

amoldybuffalo commented 2 years ago

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:

<?xml version="1.0" encoding="UTF-8"?>

  • 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 .

yuk7 commented 2 years ago

hmm... Did you check the firewall settings?

amoldybuffalo commented 2 years ago

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 .

fdciabdul commented 2 years ago

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 ?