I'm trying to run WSL Ubuntu on my Windows 10 PC. I have Ubuntu and Xming installed, and have been trying to run gedit on the WSL. I've done the same basic installation thats common for Xming and WSL, I've updated WSL multiple times, and still no success.
My process was generally:
- Install WSL
- Install Xming
- Run Xming via Xlaunch with basic setup
- export DISPLAY=:0.0 (I've tried numerous variations of this)
- Install gedit
- Run gedit
The error I get is:
'''Unable to init server: Could not connect: Connection refused
(gedit:44): Gtk-WARNING **: 19:47:20.284: cannot open display: :0.0'''
Please help, I'm at my wits end.
UPDATE:I reinstalled it and realized that the WSL version was WSL 2, so setting it to WSL 1 fixed the problem.