Connection refused while initiating application
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 305
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
Hi @nbdd0121, I am having issues with running Terminator GUI via WSL2 Ubuntu.
Here is my setup:
- Start VcXSrv on windows host with
vcxsrv.exe :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl -dpi auto - Start the
wsldhost --daemonwith in Windows CMD as admin, and verified that it is running on the port 6000 - Inside WSL via windows CMD
export DISPLAY=:0and startwsldprocess in background. - But I can't get any response for
xset q, it just waits. - 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!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported WSL2 setup with VcXSrv, wsldhost, wsld, DISPLAY=:0, and xset q, then compare it with launching terminator. Investigate why the X11 connection is refused despite /tmp/.X0-lock and /tmp/.X11-unix/X0 being present; done means the connection responds and Terminator starts successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100