WSL Fedora 42 - Windowed (GUI) apps -- Success !!!


jimbo45

Well-known member
Pro User
VIP
Local time
3:07 AM
Posts
5,862
Location
Hafnarfjörður IS
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Hi folks
This seems much easier now -- for W11 Pro versions at least

Simply a) create a file called .wslconfig at c:\users\youruserid (don't forget the '.').
[wsl2]
guiapplications=false

b) install the application with sudo dnf install <application>

c) start it in the wsl console window <application> &

ignore all the console messages = you should see your app

e.g Dolphin (KDE filemanager)

Screenshot 2025-05-09 090413.webp


or if you like old solitaire type games

sudo dnf install kpat

kpat &

then I selected Spider solitaire

Screenshot 2025-05-09 091023.webp

I haven't yet got "Multiple windows" so far - each windowed app has to be closed before another one can be initiated -- but I'm working to see if I can get a "Workspace" desktop e.g kde plasma or Gnome etc.

I think also you can't get access to this wsl from elsewhere in your network - it's host only sharing -- (remember it's not a VM !!). Still a lot of experimenting to do but seems fun -- the trick initially was that .wslconfig file -- But Ms has never been that great on documentation !!!!!

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
Hi folks
This seems much easier now -- for W11 Pro versions at least

Simply a) create a file called .wslconfig at c:\users\youruserid (don't forget the '.').
[wsl2]
guiapplications=false

Hi jimbo45,

Actually you should set guiapplications to true, if you want to run Linux GUI software in WSL2.
 

My Computer My Computer

At a glance

macOSApple silicon M432 GBApple silicon M4
OS
macOS
Computer type
PC/Desktop
Manufacturer/Model
Mac mini M4
CPU
Apple silicon M4
Memory
32 GB
Graphics Card(s)
Apple silicon M4
Monitor(s) Displays
LG 27GN650-B IPS HDR Gaming Monitor 27" FHD
Screen Resolution
1080p
Hard Drives
Apple SSD AP1024Z
Internet Speed
1 Gbps / 1 Gbps symmetrical FTTH (GPON)
Browser
Microsoft Edge
Hi jimbo45,

Actually you should set guiapplications to true, if you want to run Linux GUI software in WSL2.
Typo

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
Back
Top Bottom