You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install any Qt application (I tested with freecad) and try to launch it.
Expected Behavior
Wslg should give GUI output.
Actual Behavior
App launch aborted with the following logs
Log: Init: App::FreeCADInit.py done
Log: Init: Creating Gui::Application and QApplication
Log: could not connect to display :0
Log: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Log: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Looking at the logs, it looks like systemd is enabled on this distro. Can you try disabling it, run wsl.exe --shutdown and try to start the QT app again ?
Thanks for the advice.
It seems systemd was causing the problem. After disabling that the application runs without an issue. This also fixes the issue of extremely slow IO and system freeze which I was experiencing for the past few days.
Thanks for the advice. It seems systemd was causing the problem. After disabling that the application runs without an issue. This also fixes the issue of extremely slow IO and system freeze which I was experiencing for the past few days.
I have had a problem with Dolphin not being able to open files by double clicking on them for a while now and I had no idea what has changed. I finally came across this comment and changed my /etc/wsl.confsystemd entry in [boot] to false and it works again.
Activity
OneBlue commentedon Oct 20, 2022
/logs
nightHawk406 commentedon Oct 20, 2022
WslLogs-2022-10-20_16-25-04.zip
OneBlue commentedon Oct 31, 2022
Thank you @Night-Hawk2000.
Looking at the logs, it looks like systemd is enabled on this distro. Can you try disabling it, run wsl.exe --shutdown and try to start the QT app again ?
nightHawk406 commentedon Nov 1, 2022
Thanks for the advice.
It seems systemd was causing the problem. After disabling that the application runs without an issue. This also fixes the issue of extremely slow IO and system freeze which I was experiencing for the past few days.
biggestsonicfan commentedon Apr 8, 2024
I have had a problem with Dolphin not being able to open files by double clicking on them for a while now and I had no idea what has changed. I finally came across this comment and changed my
/etc/wsl.confsystemdentry in[boot]tofalseand it works again.