Hello beautiful peoples!
![](https://andrzej.langow.ski/wp-content/uploads/2024/07/image-6.png)
IF you have followed my “How I Run Linux GUI Apps With WSL2 on Windows.” you will now notice its broken.
![](https://andrzej.langow.ski/wp-content/uploads/2024/07/image-7.png)
There was an update to WSL recently. I am guessing this is the reason it no longer works.
The fix:
Open .bashrc
in your favourite text editor and replace THIS line we previously added at the top of the file:
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
With:export DISPLAY=:0
![](https://andrzej.langow.ski/wp-content/uploads/2024/07/image-9.png)
Save the file, close and re-open the linux terminal.
Your graphical apps should now work again. And… they should look slightly better?
![](https://andrzej.langow.ski/wp-content/uploads/2024/07/image-10.png)
I hope this helps!
Catch you on the flip side,
AndrzejL