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


jimbo45

Well-known member
Pro User
VIP
Local time
8:00 AM
Posts
5,162
Location
Hafnarfjörður IS
OS
Windows XP,10,11 Linux (Fedora 42&43 pre-release,Arch Linux)
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

System One

  • OS
    Windows XP,10,11 Linux (Fedora 42&43 pre-release,Arch Linux)
    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

System One

  • 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

System One

  • OS
    Windows XP,10,11 Linux (Fedora 42&43 pre-release,Arch Linux)
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
    Screen Resolution
    4KUHD X 2
Back
Top Bottom