-
Notifications
You must be signed in to change notification settings - Fork 395
Description
Windows build number:
Microsoft Windows [Version 10.0.26200.7171]
Your Distribution version:
24.04
Your WSL versions:
C:\Users\oppie>wsl --version
WSL version: 2.6.1.0
Kernel version: 6.6.87.2-1
WSLg version: 1.0.66
MSRDC version: 1.2.6353
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26200.7171
oppie@Mini:~$ cat /mnt/wslg/weston.log
Date: 2025-12-01 EST
[06:56:36.931] weston 9.0.0
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 9.0.0-210-gf227edd6
[06:56:36.932] Command line: /usr/bin/weston --backend=rdp-backend.so --modules=wslgd-notify.so --xwayland --socket=wayland-0 --shell=rdprail-shell.so --log=/mnt/wslg/weston.log --logger-scopes=log,rdp-backend,rdprail-shell
[06:56:36.932] OS: Linux, 6.6.87.2-microsoft-standard-WSL2, #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025, x86_64
[06:56:36.932] warning: XDG_RUNTIME_DIR "/mnt/wslg/runtime-dir" is not configured
correctly. Unix access mode must be 0700 (current mode is 777),
and must be owned by the user (current owner is UID 1000).
Refer to your distribution on how to get it, or
http://www.freedesktop.org/wiki/Specifications/basedir-spec
on how to implement it.
[06:56:36.935] Using config file '/home/wslg/.config/weston.ini'
[06:56:36.938] Output repaint window is 7 ms maximum.
[06:56:36.940] Loading module '/usr/lib/libweston-9/rdp-backend.so'
[06:56:36.972] using FreeRDP version 2.4.0
Date: 2025-12-01 EST
[06:56:36.972] RDP backend: WESTON_RDP_DEBUG_LEVEL: 3
[06:56:36.972] RDP backend: rdp_monitor_refresh_rate: 60000
[06:56:36.972] RDP backend: timer resolution tv_sec:0 tv_nsec:1
[06:56:36.972] RDP backend: Environment dump - start
[06:56:36.972] WSL2_DEFAULT_APP_ICON=/usr/share/icons/wsl/linux.png
[06:56:36.972] SHELL=/bin/bash
[06:56:36.972] WSL2_GUI_APPS_ENABLED=1
[06:56:36.972] WSL_DISTRO_NAME=
[06:56:36.972] WSL2_VM_ID=0453C88E-C2D2-47E3-90CB-2827E33A1786
[06:56:36.972] XCURSOR_PATH=/mnt/wslg/distro/usr/share/icons:/usr/share/icons
[06:56:36.972] XCURSOR_SIZE=16
[06:56:36.972] WLOG_APPENDER=file
[06:56:36.972] NAME=Mini
[06:56:36.972] PWD=/home/wslg
[06:56:36.972] LOGNAME=wslg
[06:56:36.972] WSL_FEATURE_FLAGS=34
[06:56:36.972] WSL2_USER_PROFILE=C:\Users\oppie
[06:56:36.972] WSL2_SYSTEM_DISTRO=1
[06:56:36.972] WSL2_DISTRO_NAME=Ubuntu-24.04
[06:56:36.972] _=/usr/bin/weston
[06:56:36.972] PULSE_AUDIO_RDP_SINK=/mnt/wslg/PulseAudioRDPSink
[06:56:36.972] HOME=/home/wslg
[06:56:36.972] WSLG_SERVICE_ID=00000001-FACB-11E6-BD58-64006A7986D3
[06:56:36.972] WAYLAND_DISPLAY=wayland-0
[06:56:36.972] USE_VSOCK=3
[06:56:36.972] WSL2_DEFAULT_APP_OVERLAY_ICON=/usr/share/icons/wsl/linux.png
[06:56:36.972] USER=wslg
[06:56:36.972] DISPLAY=:0
[06:56:36.972] SHLVL=0
[06:56:36.972] WSLGD_NOTIFY_SOCKET=/mnt/wslg/weston-notify.sock
[06:56:36.972] WLOG_FILEAPPENDER_OUTPUT_FILE_PATH=/mnt/wslg
[06:56:36.972] XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir
[06:56:36.972] WSL2_SHARED_MEMORY_OB_DIRECTORY=WSL\0453C88E-C2D2-47E3-90CB-2827E33A1786\wslg
[06:56:36.972] XCURSOR_THEME=whiteglass
[06:56:36.972] PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
[06:56:36.972] WESTON_DISABLE_ABSTRACT_FD=1
[06:56:36.972] WLOG_FILEAPPENDER_OUTPUT_FILE_NAME=wlog.log
[06:56:36.972] PULSE_AUDIO_RDP_SOURCE=/mnt/wslg/PulseAudioRDPSource
[06:56:36.972] PULSE_SERVER=unix:/mnt/wslg/PulseServer
[06:56:36.972] WSL2_INSTALL_PATH=C:\Program Files\WSL
[06:56:36.972] WSL2_SHARED_MEMORY_MOUNT_POINT=/mnt/shared_memory
[06:56:36.972] WESTON_CONFIG_FILE=/home/wslg/.config/weston.ini
[06:56:36.972] RDP backend: Environment dump - end
I am thinking it has to do with how it sets up /tmp/wslg/runtime-directory as 0777 and not 0700
oppie@Mini:$ ls -lha /mnt/wslg$
total 52K
drwxrwxrwt 7 root root 300 Dec 1 07:30 .
drwxr-xr-x 6 root root 4.0K Dec 1 06:09 ..
drwxrwxrwx 2 root root 40 Dec 1 07:30 .X11-unix
srwxrwxrwx 1 oppie oppie 0 Dec 1 07:30 PulseAudioRDPSink
srwxrwxrwx 1 oppie oppie 0 Dec 1 07:30 PulseAudioRDPSource
srwxrwxrwx 1 oppie oppie 0 Dec 1 07:30 PulseServer
drwxr-xr-x 22 root root 4.0K Dec 1 07:30 distro
drwxr-xr-x 65 root root 4.0K Sep 12 2024 doc
-rw------- 1 oppie oppie 1.6K Dec 1 07:30 pulseaudio.log
drwxr-xr-x 3 root root 60 Dec 1 07:30 run
drwxrwxrwx 3 oppie oppie 100 Dec 1 07:30 runtime-dir
-r--r--r-- 1 root root 5.3K Dec 1 07:30 stderr.log
-rw-r--r-- 1 root root 329 Sep 12 2024 versions.txt
-rw-rw-rw- 1 oppie oppie 18K Dec 1 07:30 weston.log
-rw-rw-rw- 1 oppie oppie 1.7K Dec 1 07:30 wlog.log
oppie@Mini:
If you try to: sudo rm -rf /tmp/.X11-unix it says resource busy.
Steps to reproduce:
- start wsl2
- type gimp at shell prompt
- get "Cannot open display:"
WSL logs:
WSL dumps:
No response
Expected behavior:
No response
Actual behavior:
Get "Cannot open display:" when I try and start gimp.