Questions tagged [wslg]

WSLg is a feature of the Windows Subsystem for Linux (WSL2) that enables Linux GUI apps to run on the Windows desktop.

WSLg is a feature of the Windows Subsystem for Linux (WSL2) that enables Linux GUI apps to run on the Windows desktop.

There are other techniques that have been developed for WSL to run Linux GUI apps, such as:

  • Installing an X server in Windows
  • Running Remote Desktop Protocol to connect to a WSL instance

However, questions about these alternative techniques should not be tagged as WSLg. Use the WSLg tag when asking specifically about the built-in functionality in Windows.

Note that this feature is currently available for Windows 11 (and presumably later releases) only. If you are using a released version of Windows 10, then you are likely not using WSLg, as Microsoft has stated that there are no plans to release this feature on that version. If, in the future, you believe that has changed, then please propose an update to this tag wiki.

14 questions
4
votes
3 answers

Disappearing windows - now in wslg

This is a followup to old questions WSL2 X11 programs "disappear" and Is there a way to re-attach an X Window if my X Server is in Windows? These are from the pre-wslg era, but now I have the same issue on WSL version: 1.2.5.0 Kernel version:…
3
votes
1 answer

Why is my mouse cursor so big on WSL2 applications?

I did a do-release-upgrade in my WSL2 setup today to go to Ubuntu 24.04 and now my mouse cursor when I hover over graphical Linux applications is huge. It's probably 4 times as tall and 4 times as wide as it should be. >wsl -l Windows Subsystem for…
user12701
  • 213
3
votes
1 answer

Start menu shortcut on Windows for WSL2 GUI app not working

I am not able to get a custom start menu shortcut to a WSL2 GUI app working inside Windows 11. The app in question is Android Studio which is installed with snap using https://github.com/arkane-systems/genie. Other installed apps that automatically…
Isak
  • 425
2
votes
0 answers

Low GUI performance of some apps running in WSL

I have very low GUI performance of certain apps running in WSL (specifically Google Chrome and IntelliJ IDEA). It feels like there's no hardware acceleration. GUI windows are very unresponsive (key presses and scrolling have very noticeable lag),…
2
votes
2 answers

GUI apps not working in WSL2 for Windows 11

When launching an app with GUI I have no error message but no window shows up. My display variable is set to 192.168.128.1:0 (don't know if it helps). Running on a AMD laptop with a Ryzen 5 2500U.
Eliaz
  • 23
  • 1
  • 1
  • 4
2
votes
1 answer

New feature WSL 2 GUI apps is not woking properly :(

Microsoft has released a new feature for WSL that runs Linux GUI applications on Windows https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps I followed the steps but I'm not working properly here I think it's not working, but while…
1
vote
0 answers

Cannot share wslg stuff in skype

When in a skype conversation, I have a wslg window open (with emacs running there) and want to share it. When I invoke screen sharing I am presented with a choice of buttons corresponding to sharing separate currently open windows or the entire…
1
vote
0 answers

google-chrome when ran from Ubuntu / WSL gives weird visual glitches

I'm working on a fresh install of Windows (Windows 11; 22H2 OS Build 22621.2715). I enabled WSL, installed Ubuntu 22.04.3 from the Microsoft App store and then did the following in Ubuntu: get…
neubert
  • 7,574
  • 39
  • 94
  • 156
1
vote
2 answers

WSL2/WSLg: PulseAudio: Unable to Connect: Conection Refused

I broke my sound somehow. Whenever I try to play any sound (e.g. using sox), I get: ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused play FAIL sox: Sorry, there is no default audio device configured My…
Nearoo
  • 145
1
vote
0 answers

BSOD when enabling Virtual Machine Platform in combination with vt-d

I did a new install of windows 11 on my laptop. Everything was fine until I ran "wsl --install" Got the BSOD with INACCESSIBLE_BOOT_DEVICE. After I disable VT for Direct I/O in BIOS my device boots again. Version 22H2 OS build 22621.525…
1
vote
1 answer

Garbled texts on WSL GUI application

Non-English characters are garbled on the WSL GUI application. For example, I created a text file that contains foreign characters like this: $ touch yoi.txt $ echo "English한국어日本語" > yoi.txt $ gedit yoi.txt Any suggestions?
LevelRin
  • 13
  • 4
0
votes
1 answer

Refresh problems with X11 software with WSL2

I've been running ubuntu 22.04 LTS on wsl2 on Windows 11 pro for a couple of months. I was able to successfully run gnuplot, gimp and xmgrace but, all of a sudden, I got refresh problems when I click any menu of xmgrace, gimp or run gnuplot and move…
0
votes
1 answer

WSLg: how to run GUI WSL app as root?

I'm getting started with WSLg, and I can run apps like nautilus OK, but I can't run them as root. If I run it with the Windows "Run as administrator" option, then the app just seems to run as a normal user: (base) ian@IansDesktop:~$ sudo ps aux |…
0
votes
0 answers

wsl throws error when a GUI app is launched

I'm currently in windows 11 (22000.258) i tried running google chrome in wsl (debian distro) it throws me this error "[124:124:1015/185302.103087:ERROR:browser_main_loop.cc(1400)] Unable to open X display." I tried installing drivers installing wsl…
Trex
  • 1