Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection refused while initiating application #23

Open
ihtiuh opened this issue Sep 17, 2022 · 1 comment
Open

Connection refused while initiating application #23

ihtiuh opened this issue Sep 17, 2022 · 1 comment

Comments

@ihtiuh
Copy link

ihtiuh commented Sep 17, 2022

Hi @nbdd0121, I am having issues with running Terminator GUI via WSL2 Ubuntu.

Here is my setup:

  1. Start VcXSrv on windows host with vcxsrv.exe :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl -dpi auto
  2. Start the wsldhost --daemon with in Windows CMD as admin, and verified that it is running on the port 6000
  3. Inside WSL via windows CMD export DISPLAY=:0 and start wsld process in background.
  4. But I can't get any response for xset q, it just waits.
  5. And also when initiating the application I get the following error:
C:\>wsl.exe bash -c "DISPLAY=:0 terminator"
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
You need to run terminator in an X environment. Make sure $DISPLAY is properly set

I can see the correct PID in /tmp/.X0-lock for the wsld process I started. And the /tmp/.X11-unix/X0 also have correct permissions(777):

Thanks!

@nbdd0121
Copy link
Owner

I have no immediate clue of what's wrong there. Maybe try deleting files in /tmp and try again as WSL doesn't clean up the temporary files automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants