Quantcast
Channel: Getting Emacs to work with GUI in WSL - Super User
Viewing all articles
Browse latest Browse all 2

Getting Emacs to work with GUI in WSL

$
0
0

I'm new here and I don't really get this stuff, so I'll try to provide all the relevant details but if something important is missing please tell me.

I have Windows Subsystem for Linux (WSL2) setup on Windows 10, my Linus version is Ubuntu 18.04 LTS and I'm also running VcXsrv.

I wanted to run Emacs in graphical display but I'm not being able to do it. I can use Emacs with no problems directly from the bash terminal.

I typed the following:

export DISPLAY=:0export LIBGL_ALWAYS_INDIRECT=1emacs

And Emacs does open, but in the terminal version, not the GUI. After I close it, I can see in the terminal the message:

Display :0 unavailable, simulating -nw

I tried searching through the Internet and this site but I couldn't solve this. I have checked that I do have the XServer up and running, at least as far as I can tell, but the problem seems to reside there somehow.


Viewing all articles
Browse latest Browse all 2

Trending Articles