GUI (gtk1) app fails to run on WSLg; works okay on bare metal Xwayland
Author: HMRWork42Created Aug 7, 2026Updated Sep 18, 2026
Labelsbug
Windows build number:
Microsoft Windows [Version 10.0.26200.8973]
Your Distribution version:
Fedora 44 (lsb_release -r outputsRelease: 44)
Your WSL versions:
WSL version: 2.7.11.0
Kernel version: 6.18.33.2-2
WSLg version: 1.0.73.2
MSRDC version: 1.2.7214
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26200.8973Steps to reproduce:
- install
gsviewfromrpmfusion. - run
gsview <any.pdf> - see a pop up window showing the error
Failed to open device or install ViewerPreProcess hook: returns -21.
WSL logs:
zip files from sudo zip -r9X ~/Desktop/wsl-logs.zip /mnt/wslg/*.log
WSL dumps:
No response
Expected behavior:
gsview <any.pdf> should display the pdf. I have a bare-metal Fedora 44 system too, and it does work there correctly. So this is specific to WSLg.
Actual behavior:
See a pop up window showing the error Failed to open device or install ViewerPreProcess hook: returns -21 .
Source: microsoft/wslg