KDE Segfaults on WSL2

So up until a little while ago, Dolphin/Kate/etc… KDE programs were running fine in a graphical interface via wslg on my SUSE-TW Windows Subsystem Linux. However, it now appears KDE applications will only run with systemd enabled for WSL. I typically don’t have systemd enabled because the default mount point of /mnt/ is used instead of the override in wsl.config automount root option of /run/media/user, as SUSE typically uses.

So I can either have KDE working with systemd with messed up mount points, or I can have no KDE applications without systemd. Other GUI applications seem fine and just KDE is affected.

In the end, it looks like I had to go back to how I used to handle wslg:
/etc/wsl.conf file:

[automount]
root=/run/media/rob/
[boot]
systemd=true

%UserName%\.wslconfig file:

[wsl2]
guiApplications=true

Then once you start the terminal WSL instance, you need to execute:

sudo rm -r /tmp/.X11-unix
ln -s /run/media/rob/wslg/.X11-unix /tmp/.X11-unix

WSLg does not honor automount so you must fix it manually after you’re in the kernel.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.