ArchWSL
ArchWSL copied to clipboard
Strange bug with running GUI applications
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.
- Install an x server on windows
- 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. - install xorg-server and xorg-apps
- run the x server (vcxsrv) disabling access control and setting it to display 0
- 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.
is -ac used in VcXsrv?
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 .
Hello?
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.
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 .
hmm... Did you check the firewall settings?
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 .
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 ?