Pengwin: Penguin GUI apps not working with VcXsrv

Created on 10 Dec 2019  路  5Comments  路  Source: WhitewaterFoundry/Pengwin

Describe the bug
Trying to run a GUI app returns:

Error: Can't open display: :0

To Reproduce

  1. run penguin-setup
  2. install emacs and VcXsrv
  3. use apt to install x11-apps
  4. restart computer
  5. open terminal, and open wsl (to make sure it is running)
  6. from the start menu try open emacs GUI (nothing happens)
  7. from the terminal, try run xeyes (get Error: Can't open display: :0)
  8. check system tray (VcXsrv is running version 1.20.1.4)

Expected behavior
I expect the programs to run, and not give an error

Basic Troubleshooting Checklist

[x] I have searched Google for the error message.
[x] I have checked official WSL troubleshooting documentation: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#confirm-wsl-is-enabled.
[x] I have searched the official Microsoft WSL issues page: https://github.com/Microsoft/WSL/issues.
[x] I have searched the Pengwin issues page: https://github.com/WhitewaterFoundry/Pengwin/issues.
[x] I have reset Pengwin: Settings->Apps->Apps & features->Pengwin->Advanced Options->Reset.
[x] I have disabled and re-enabled WSL in Windows Features.
[x] I have run Windows 10 updates and restarted.

Pengwin Version
1.2.8.0

Windows Build

OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.19035 N/A Build 19035
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
BIOS Version:              Alienware 1.8.0, 5/30/2019

All 5 comments

Hello,

By any chance you are using WSL2? It should work in WSL1 for WSL2 we are working on this.

Regards

It is WSL2.
Thank you for the quick update.

Follow this PR: https://github.com/WhitewaterFoundry/pengwin-base/pull/61/files. You'll need to replace your /etc/profile.d/00-pengwin.sh with the file in this PR and be sure that VcxSrv accepts connections from anywhere: vcxsrv -ac

@crramirez That worked as well, thank you, it just needs AC Disabled, I might be able to create a default config.

For anyone who stubles accross this:
After replacing 00-pengwin.sh as per @crramirez you want to edit the file /etc/profile.d/vcxsrv.sh.
you can add -ac to the command that is run from there.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ket000 picture ket000  路  5Comments

camilorojasguzman picture camilorojasguzman  路  4Comments

ozzcodes picture ozzcodes  路  3Comments

ghost picture ghost  路  5Comments

sharpninja picture sharpninja  路  3Comments