microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.26k stars 812 forks source link

Unable to run any GUI applications when systemd is enabled #12041

Open CarterLi opened 1 day ago

CarterLi commented 1 day ago

Windows Version

Microsoft Windows [Version 10.0.22635.4145]

WSL Version

2.3.21.0

Are you using WSL 1 or WSL 2?

Kernel Version

Linux version 5.15.153.1-microsoft-standard-WSL2 (root@941d701f84f1) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Fri Mar 29 23:14:13 UTC 2024

Distro Version

Arch Linux

Other Software

N/A

Repro Steps

Expected Behavior

GUI applications run successfully

Actual Behavior

$ wezterm
19:45:41.489  ERROR  wezterm_gui > XOpenDisplay failed to open a display. Check the $DISPLAY env var; terminating
$ kitty
[0.148] [glfw error 65544]: Wayland: Failed to connect to display
GLFW initialization failed

Diagnostic Logs

No response

github-actions[bot] commented 1 day ago

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs Download and execute [collect-wsl-logs.ps1](https://github.com/Microsoft/WSL/blob/master/diagnostics/collect-wsl-logs.ps1) in an **administrative powershell prompt**: ``` Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1 Set-ExecutionPolicy Bypass -Scope Process -Force .\collect-wsl-logs.ps1 ``` The script will output the path of the log file once done. If this is a networking issue, please use [collect-networking-logs.ps1](https://github.com/Microsoft/WSL/blob/master/diagnostics/collect-networking-logs.ps1), following the instructions [here](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues) Once completed please upload the output files to this Github issue. [Click here for more info on logging](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method) If you choose to email these logs instead of attaching to the bug, please send them to wsl-gh-logs@microsoft.com with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

CarterLi commented 1 day ago

To follow https://github.com/microsoft/wslg/wiki/Diagnosing-%22cannot-open-display%22-type-issues-with-WSLg

~
❯ echo $DISPLAY
:0

~
❯ ls -la /tmp/.X11-unix

~
❯ ln -sf /mnt/wslg/.X11-unix /tmp/.X11-unix

~
❯ ls -la /tmp/.X11-unix
Permissions Size User   Date Modified    Name
lrwxrwxrwx     - carter 2024-09-17 19:49  .X11-unix -> /mnt/wslg/.X11-unix

~
❯ wezterm
19:49:32.504  ERROR  wezterm_gui > XOpenDisplay failed to open a display. Check the $DISPLAY env var; terminating

~
❯ kitty
[0.152] [glfw error 65544]: Wayland: Failed to connect to display
GLFW initialization failed

~
❯ cat /mnt/wslg/versions.txt
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: /mnt/wslg/versions.txt
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ WSLg ( x86_64 ): 1.0.65+Branch.main.Sha.25d8697d5049e1994baa6ba542f507347b608ad4
   2   │ Built at: Wed Aug 14 21:11:14 UTC 2024
   3   │ Mariner: VERSION="2.0.20240609"
   4   │ DirectX-Headers:
   5   │ mesa:
   6   │ pulseaudio: 6f045ff0dca233a939a2aba815f84d177e294122
   7   │ FreeRDP: c4030980b29322a9cb2190711a5fadeeeb8b6a33
   8   │ weston: f227edd681479ec3cb2290a25d84d2d3462aebfa
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

~
❯ cat /mnt/wslg/weston.log | grep isConnected_V
CarterLi commented 1 day ago

/mnt/wslg/weston.log

Date: 2024-09-17 CST
[19:48:13.533] weston 9.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: 9.0.0-210-gf227edd6
[19:48:13.533] 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
[19:48:13.533] OS: Linux, 5.15.153.1-microsoft-standard-WSL2, #1 SMP Fri Mar 29 23:14:13 UTC 2024, x86_64
[19:48:13.533] 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.
[19:48:13.535] Using config file '/home/wslg/.config/weston.ini'
[19:48:13.536] Output repaint window is 7 ms maximum.
[19:48:13.537] Loading module '/usr/lib/libweston-9/rdp-backend.so'
[19:48:13.546] using FreeRDP version 2.4.0
Date: 2024-09-17 CST
[19:48:13.546] RDP backend: WESTON_RDP_DEBUG_LEVEL: 3
[19:48:13.546] RDP backend: rdp_monitor_refresh_rate: 60000
[19:48:13.546] RDP backend: timer resolution tv_sec:0 tv_nsec:1
[19:48:13.546] RDP backend: Environment dump - start
[19:48:13.546]   WSL2_DEFAULT_APP_ICON=/usr/share/icons/wsl/linux.png
[19:48:13.546]   SHELL=/bin/bash
[19:48:13.546]   WSL2_GUI_APPS_ENABLED=1
[19:48:13.546]   WSL_DISTRO_NAME=
[19:48:13.546]   WSL2_VM_ID=A542ADD1-932B-4805-B324-8C51523D4849
[19:48:13.546]   XCURSOR_PATH=/mnt/wslg/distro/usr/share/icons:/usr/share/icons
[19:48:13.546]   XCURSOR_SIZE=16
[19:48:13.546]   WLOG_APPENDER=file
[19:48:13.546]   NAME=MSIGE76
[19:48:13.546]   PWD=/home/wslg
[19:48:13.546]   LOGNAME=wslg
[19:48:13.546]   WSL_FEATURE_FLAGS=34
[19:48:13.546]   WSL2_USER_PROFILE=C:\Users\zhang
[19:48:13.546]   WSL2_DISTRO_NAME=Arch
[19:48:13.546]   _=/usr/bin/weston
[19:48:13.546]   PULSE_AUDIO_RDP_SINK=/mnt/wslg/PulseAudioRDPSink
[19:48:13.546]   HOME=/home/wslg
[19:48:13.546]   WSLG_SERVICE_ID=00000001-FACB-11E6-BD58-64006A7986D3
[19:48:13.546]   WAYLAND_DISPLAY=wayland-0
[19:48:13.546]   USE_VSOCK=3
[19:48:13.546]   WSL2_DEFAULT_APP_OVERLAY_ICON=/usr/share/icons/wsl/linux.png
[19:48:13.546]   USER=wslg
[19:48:13.546]   DISPLAY=:0
[19:48:13.546]   SHLVL=0
[19:48:13.546]   WSLGD_NOTIFY_SOCKET=/mnt/wslg/weston-notify.sock
[19:48:13.546]   WLOG_FILEAPPENDER_OUTPUT_FILE_PATH=/mnt/wslg
[19:48:13.546]   XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir
[19:48:13.546]   WSL2_SHARED_MEMORY_OB_DIRECTORY=WSL\A542ADD1-932B-4805-B324-8C51523D4849\wslg
[19:48:13.546]   XCURSOR_THEME=whiteglass
[19:48:13.546]   PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
[19:48:13.546]   WESTON_DISABLE_ABSTRACT_FD=1
[19:48:13.546]   WLOG_FILEAPPENDER_OUTPUT_FILE_NAME=wlog.log
[19:48:13.546]   PULSE_AUDIO_RDP_SOURCE=/mnt/wslg/PulseAudioRDPSource
[19:48:13.546]   PULSE_SERVER=unix:/mnt/wslg/PulseServer
[19:48:13.546]   WSL2_INSTALL_PATH=C:\Program Files\WSL
[19:48:13.546]   WSL2_SHARED_MEMORY_MOUNT_POINT=/mnt/shared_memory
[19:48:13.546]   WESTON_CONFIG_FILE=/home/wslg/.config/weston.ini
[19:48:13.546] RDP backend: Environment dump - end
[19:48:13.546] RDP backend: FreeRDP version: 2.4.0
[19:48:13.546] Using external fd for incoming connections: 3
[19:48:13.546] Default head is being added
[19:48:13.546] Registered plugin API 'weston_rdprail_api_v1' of size 72
[19:48:13.546] RDPAPPLIST_MODULEDIR is set to /usr/lib/rdpapplist
[19:48:13.547] RDP backend: use_rdpapplist = 1
[19:48:13.554] RDP backend: use_gfxredir = 1
[19:48:13.554] RDP backend: enable_hi_dpi_support = 1
[19:48:13.554] RDP backend: enable_fractional_hi_dpi_support = 0
[19:48:13.554] RDP backend: enable_fractional_hi_dpi_roundup = 0
[19:48:13.554] RDP backend: debug_desktop_scaling_factor = 0
[19:48:13.554] RDP backend: enable_window_zorder_sync = 1
[19:48:13.554] RDP backend: enable_window_snap_arrange = 1
[19:48:13.554] RDP backend: enable_window_shadow_remoting = 1
[19:48:13.554] RDP backend: enable_display_power_by_screenupdate = 0
[19:48:13.554] RDP backend: enable_distro_name_title = 1
[19:48:13.554] RDP backend: enable_copy_warning_title = 1
[19:48:13.554] Using VSOCK for incoming connections: 3
[19:48:13.556] Registered plugin API 'weston_rdp_output_api_v1' of size 24
[19:48:13.556] Head attaching: rdp-0, index:0, is_primary: 1
[19:48:13.556] Client desktop upper left coordinate (0,0)
[19:48:13.556] disp_monitor_validate_and_compute_layout:---OUTPUT---
[19:48:13.556]  rdpMonitor[0]: x:0, y:0, width:0, height:0, is_primary:1
[19:48:13.556]  rdpMonitor[0]: weston x:0, y:0, width:0, height:0
[19:48:13.556]  rdpMonitor[0]: physicalWidth:0, physicalHeight:0, orientation:0
[19:48:13.556]  rdpMonitor[0]: desktopScaleFactor:0, deviceScaleFactor:0
[19:48:13.556]  rdpMonitor[0]: scale:1, clientScale:1.00
[19:48:13.556] Head mode change:rdp-0 NEW width:0, height:0, scale:1, clientScale:1.000000
[19:48:13.556] move head/output rdp-0 (0,0) -> (0,0)
[19:48:13.556] client origin (0,0) is (0,0) in Weston space
[19:48:13.556] Output 'rdp-0' enabled with head(s) rdp-0
[19:48:13.556] Compositor capabilities:
               arbitrary surface rotation: yes
               screen capture uses y-flip: no
               presentation clock: CLOCK_MONOTONIC_RAW, id 4
               presentation clock resolution: 0.000000001 s
[19:48:13.557] Loading module '/usr/lib/weston/rdprail-shell.so'
[19:48:13.568] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_DEBUG_LEVEL: 3.
Date: 2024-09-17 CST
[19:48:13.568] RDPRAIL-shell: allow-zap:0
[19:48:13.568] RDPRAIL-shell: allow-alt-f4-to-close-app:1
[19:48:13.568] RDPRAIL-shell: binding-modifier:none
[19:48:13.568] RDPRAIL-shell: local-move:0
[19:48:13.568] RDPRAIL-shell: distro name:Arch (len:4)
[19:48:13.571] RDPRAIL-shell: WSL2_DEFAULT_APP_ICON:/usr/share/icons/wsl/linux.png (loaded:yes)
[19:48:13.571] RDPRAIL-shell: WSL2_DEFAULT_APP_OVERLAY_ICON:/usr/share/icons/wsl/linux.png (loaded:yes)
[19:48:13.572] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_APPEND_DISTRONAME_STARTMEN:1
[19:48:13.572] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_BLEND_OVERLAY_ICON_APPLIST:1
[19:48:13.572] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_BLEND_OVERLAY_ICON_TASKBAR:1
[19:48:13.572] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_USE_WSLPATH:0
[19:48:13.572] rdp_rail_shell_initialize_notify: shell: distro name: Arch
[19:48:13.574] app_list_monitor_thread: running in system-distro with user-distro: Arch
[19:48:13.574] app_list_monitor_thread: open(/proc/self/ns/mnt)
[19:48:13.574] app_list_monitor_thread: open(/proc/2/ns/mnt)
[19:48:13.574] app_list_monitor_thread: inotify_add_watch(/usr/share/applications)
[19:48:13.575] app_list_monitor_thread: monitor /usr/share/applications
[19:48:13.574] Loading module '/usr/lib/libweston-9/xwayland.so'
[19:48:13.576] app_list_monitor_thread: /usr/local/share/applications doesn't exist, skipping.
[19:48:13.576] app_list_monitor_thread: /var/lib/snapd/desktop/applications doesn't exist, skipping.
[19:48:13.576] app_list_monitor_thread: /var/lib/flatpak/exports/share/applications doesn't exist, skipping.
[19:48:13.576] app list folder[0]: /usr/share/applications
[19:48:13.577] Registered plugin API 'weston_xwayland_v1' of size 32
[19:48:13.577] Registered plugin API 'weston_xwayland_surface_v1' of size 48
[19:48:13.577] Not using abstract fd for Xwayland
[19:48:13.578] xserver listening on display :0
[19:48:13.578] Loading module '/usr/lib/weston/wslgd-notify.so'
[19:48:13.579] ../compositor/wslgd-notify.c: socket connected
[19:48:13.588] find_icon_file: icon (network-wired) search retry:(1) global:(1)
[19:48:13.588] desktop file: /usr/share/applications/bvnc.desktop
[19:48:13.588]     Name[en_US]:Avahi VNC Server Browser (Arch)
[19:48:13.588]     Exec:/usr/bin/bvnc
[19:48:13.588]     TryExec:(null)
[19:48:13.588]     WorkingDir:(null)
[19:48:13.588]     Icon name:network-wired
[19:48:13.588]     Icon SVG :0
[19:48:13.588]     Icon file:(null)
[19:48:13.588]     Icon image:(nil)
[19:48:13.588] app list entry updated: Key:bvnc, Name:Avahi VNC Server Browser (Arch)
[19:48:13.589] desktop file: /usr/share/applications/btop.desktop is terminal based app
[19:48:13.589] app list entry failed to update: Key:btop
[19:48:13.589] free_app_entry(): (null): /usr/share/applications/btop.desktop
[19:48:13.590] desktop file: /usr/share/applications/fish.desktop is terminal based app
[19:48:13.590] app list entry failed to update: Key:fish
[19:48:13.590] free_app_entry(): (null): /usr/share/applications/fish.desktop
[19:48:13.590] desktop file: /usr/share/applications/org.gnupg.pinentry-qt5.desktop has NoDisplay specified
[19:48:13.590] app list entry failed to update: Key:pinentry-qt5
[19:48:13.590] free_app_entry(): (null): /usr/share/applications/org.gnupg.pinentry-qt5.desktop
[19:48:13.590] find_icon_file: icon (network-wired) search retry:(1) global:(2)
[19:48:13.590] desktop file: /usr/share/applications/avahi-discover.desktop
[19:48:13.591]     Name[en_US]:Avahi Zeroconf Browser (Arch)
[19:48:13.591]     Exec:/usr/bin/avahi-discover
[19:48:13.591]     TryExec:(null)
[19:48:13.591]     WorkingDir:(null)
[19:48:13.591]     Icon name:network-wired
[19:48:13.591]     Icon SVG :0
[19:48:13.591]     Icon file:(null)
[19:48:13.591]     Icon image:(nil)
[19:48:13.591] app list entry updated: Key:avahi-discover, Name:Avahi Zeroconf Browser (Arch)
[19:48:13.591] desktop file: /usr/share/applications/kitty-open.desktop has NoDisplay specified
[19:48:13.591] app list entry failed to update: Key:kitty-open
[19:48:13.591] free_app_entry(): (null): /usr/share/applications/kitty-open.desktop
[19:48:13.591] desktop file: /usr/share/applications/zellij.desktop is terminal based app
[19:48:13.592] app list entry failed to update: Key:zellij
[19:48:13.592] free_app_entry(): (null): /usr/share/applications/zellij.desktop
[19:48:13.592] desktop file: /usr/share/applications/vim.desktop is terminal based app
[19:48:13.592] app list entry failed to update: Key:vim
[19:48:13.592] free_app_entry(): (null): /usr/share/applications/vim.desktop
[19:48:13.592] desktop file: /usr/share/applications/org.gnupg.pinentry-qt.desktop has NoDisplay specified
[19:48:13.592] app list entry failed to update: Key:pinentry-qt
[19:48:13.592] free_app_entry(): (null): /usr/share/applications/org.gnupg.pinentry-qt.desktop
[19:48:13.593] find_icon_file: icon (network-wired) search retry:(1) global:(3)
[19:48:13.593] desktop file: /usr/share/applications/bssh.desktop
[19:48:13.593]     Name[en_US]:Avahi SSH Server Browser (Arch)
[19:48:13.593]     Exec:/usr/bin/bssh
[19:48:13.593]     TryExec:(null)
[19:48:13.593]     WorkingDir:(null)
[19:48:13.593]     Icon name:network-wired
[19:48:13.593]     Icon SVG :0
[19:48:13.593]     Icon file:(null)
[19:48:13.593]     Icon image:(nil)
[19:48:13.593] app list entry updated: Key:bssh, Name:Avahi SSH Server Browser (Arch)
[19:48:13.593] desktop file: /usr/share/applications/nvim.desktop is terminal based app
[19:48:13.593] app list entry failed to update: Key:nvim
[19:48:13.593] free_app_entry(): (null): /usr/share/applications/nvim.desktop
[19:48:13.595] desktop file: /usr/share/applications/org.wezfurlong.wezterm.desktop
[19:48:13.595]     Name[en_US]:WezTerm (Arch)
[19:48:13.595]     Exec:wezterm start --cwd .
[19:48:13.595]     TryExec:wezterm
[19:48:13.595]     WorkingDir:(null)
[19:48:13.595]     Icon name:org.wezfurlong.wezterm
[19:48:13.595]     Icon SVG :0
[19:48:13.595]     Icon file:/usr/share/icons/hicolor/128x128/apps/org.wezfurlong.wezterm.png
[19:48:13.595]     Icon image:0x7f261c00c1e0
[19:48:13.595] app list entry updated: Key:wezterm, Name:WezTerm (Arch)
[19:48:13.597] desktop file: /usr/share/applications/cmake-gui.desktop
[19:48:13.597]     Name[en_US]:CMake (Arch)
[19:48:13.597]     Exec:cmake-gui
[19:48:13.597]     TryExec:(null)
[19:48:13.597]     WorkingDir:(null)
[19:48:13.597]     Icon name:CMakeSetup
[19:48:13.597]     Icon SVG :0
[19:48:13.597]     Icon file:/usr/share/icons/hicolor/128x128/apps/CMakeSetup.png
[19:48:13.597]     Icon image:0x7f261c00c470
[19:48:13.597] app list entry updated: Key:cmake-gui, Name:CMake (Arch)
[19:48:13.598] desktop file: /usr/share/applications/kitty.desktop
[19:48:13.598]     Name[en_US]:kitty (Arch)
[19:48:13.598]     Exec:kitty
[19:48:13.598]     TryExec:kitty
[19:48:13.598]     WorkingDir:(null)
[19:48:13.598]     Icon name:kitty
[19:48:13.598]     Icon SVG :0
[19:48:13.598]     Icon file:/usr/share/pixmaps/kitty.png
[19:48:13.598]     Icon image:0x7f261c021230
[19:48:13.598] app list entry updated: Key:kitty, Name:kitty (Arch)
[19:48:13.598] app list folder[1]: /usr/local/share/applications
[19:48:13.599] app list folder[2]: /var/lib/snapd/desktop/applications
[19:48:13.599] app list folder[3]: /var/lib/flatpak/exports/share/applications
[19:48:15.596] Spawned Xwayland server, pid 263
[19:48:15.601] retry_find_icon_file: icon (network-wired) retry count (1)
[19:48:15.601] find_icon_file: icon (network-wired) search retry:(2) global:(3)
[19:48:15.601] retry_find_icon_file: icon (network-wired) retry count (1)
[19:48:15.601] find_icon_file: icon (network-wired) search retry:(2) global:(3)
[19:48:15.601] retry_find_icon_file: icon (network-wired) retry count (1)
[19:48:15.601] find_icon_file: icon (network-wired) search retry:(2) global:(3)
[19:48:17.603] retry_find_icon_file: icon (network-wired) retry count (2)
[19:48:17.603] find_icon_file: icon (network-wired) search retry:(3) global:(3)
[19:48:17.603] retry_find_icon_file: icon (network-wired) retry count (2)
[19:48:17.603] find_icon_file: icon (network-wired) search retry:(3) global:(3)
[19:48:17.603] retry_find_icon_file: icon (network-wired) retry count (2)
[19:48:17.603] find_icon_file: icon (network-wired) search retry:(3) global:(3)
[19:48:19.505] xfixes version: 5.0
[19:48:19.520] created wm, root 1080
[19:48:19.606] retry_find_icon_file: icon (network-wired) retry count (3)
[19:48:19.606] find_icon_file: icon (network-wired) search retry:(4) global:(3)
[19:48:19.606] retry_find_icon_file: icon (network-wired) retry count (3)
[19:48:19.606] find_icon_file: icon (network-wired) search retry:(4) global:(3)
[19:48:19.606] retry_find_icon_file: icon (network-wired) retry count (3)
[19:48:19.606] find_icon_file: icon (network-wired) search retry:(4) global:(3)
[19:48:20.245] Client: ClientStatus:0x3f5
[19:48:20.245]      - TS_RAIL_CLIENTSTATUS_ALLOWLOCALMOVESIZE
[19:48:20.245]      - TS_RAIL_CLIENTSTATUS_ZORDER_SYNC
[19:48:20.245]      - TS_RAIL_CLIENTSTATUS_WINDOW_RESIZE_MARGIN_SUPPORTED
[19:48:20.245]      - TS_RAIL_CLIENTSTATUS_HIGH_DPI_ICONS_SUPPORTED
[19:48:20.245]      - TS_RAIL_CLIENTSTATUS_APPBAR_REMOTING_SUPPORTED
[19:48:20.245]      - TS_RAIL_CLIENTSTATUS_POWER_DISPLAY_REQUEST_SUPPORTED
[19:48:20.245]      - TS_RAIL_CLIENTSTATUS_GET_APPID_RESPONSE_EX_SUPPORTED
[19:48:20.245]      - TS_RAIL_CLIENTSTATUS_BIDIRECTIONAL_CLOAK_SUPPORTED
[19:48:20.245] Client HandShake buildNumber:22635
[19:48:20.258] Server AppList caps version:4
[19:48:20.258]     appListProviderName:Arch
[19:48:20.258]     appListProviderUniqueId:00000001-FACB-11E6-BD58-64006A7986D3
[19:48:20.278] Client: gfxredir_caps: length:28
[19:48:20.278] Client: GrfxCaps count:0xb
[19:48:20.278] Client: GrfxCaps[0] version:0x80004 length:4 flags:0x0
[19:48:20.278]  Version : RDPGFX_CAPVERSION_8
[19:48:20.278] Client: GrfxCaps[1] version:0x80105 length:4 flags:0x0
[19:48:20.278]  Version : RDPGFX_CAPVERSION_81
[19:48:20.278] Client: GrfxCaps[2] version:0xa0002 length:4 flags:0x0
[19:48:20.278]  Version : RDPGFX_CAPVERSION_10
[19:48:20.278] Client: GrfxCaps[3] version:0xa0200 length:4 flags:0x0
[19:48:20.278]  Version : RDPGFX_CAPVERSION_102
[19:48:20.278] Client: GrfxCaps[4] version:0xa0301 length:4 flags:0x0
[19:48:20.278] Client: gfxredir_caps[0]: signature:0x53504143
[19:48:20.278]  Version : RDPGFX_CAPVERSION_103
[19:48:20.278] Client: GrfxCaps[5] version:0xa0400 length:4 flags:0x0
[19:48:20.279]  Version : RDPGFX_CAPVERSION_104
[19:48:20.278] Client: gfxredir_caps[0]: version:0x1
[19:48:20.279] Client: gfxredir_caps[0]: length:12
[19:48:20.279] Client: gfxredir_caps[1]: signature:0x53504143
[19:48:20.279] Client: GrfxCaps[6] version:0xa0502 length:4 flags:0x0
[19:48:20.279] Client: gfxredir_caps[1]: version:0x2000
[19:48:20.279]  Version : RDPGFX_CAPVERSION_105
[19:48:20.279] Client: GrfxCaps[7] version:0xa0600 length:4 flags:0x0
[19:48:20.279]  Version : RDPGFX_CAPVERSION_106
[19:48:20.279] Client: gfxredir_caps[1]: length:16
[19:48:20.279] Client: gfxredir_caps[1]: supportedFeatures:0x0
[19:48:20.279] Client: gfxredir selected caps: version:0x2000
[19:48:20.279] Client: GrfxCaps[8] version:0xa0701 length:4 flags:0x0
[19:48:20.279]  Version : UNKNOWN(657153)
[19:48:20.279] Client: GrfxCaps[9] version:0xb0101 length:4 flags:0x0
[19:48:20.279]  Version : UNKNOWN(721153)
[19:48:20.279] Client: GrfxCaps[10] version:0xb0200 length:4 flags:0x0
[19:48:20.279]  Version : UNKNOWN(721408)
[19:48:20.291] xf_peer_adjust_monitor_layout:
[19:48:20.291]   DesktopWidth:2560, DesktopHeight:1440
[19:48:20.291]   UseMultimon:0
[19:48:20.291]   ForceMultimon:0
[19:48:20.291]   MonitorCount:0
[19:48:20.291]   HasMonitorAttributes:0
[19:48:20.291]   HiDefRemoteApp:1
[19:48:20.291] disp_monitor_sanity_check_layout:---INPUT---
[19:48:20.291]  rdpMonitor[0]: x:0, y:0, width:2560, height:1440, is_primary:1
[19:48:20.291]  rdpMonitor[0]: physicalWidth:381, physicalHeight:214, orientation:0
[19:48:20.291]  rdpMonitor[0]: desktopScaleFactor:150, deviceScaleFactor:140
[19:48:20.291]  rdpMonitor[0]: scale:1, client scale :1.00
[19:48:20.291] kbd_layout:0x409 kbd_type:0x7 kbd_subType:0x0 kbd_functionKeys:0xc
[19:48:20.291] convert_rdp_keyboard_to_xkb_rule_names: matching model=pc105 layout=us variant=(null) options=(null)
[19:48:20.295] Client desktop upper left coordinate (0,0)
[19:48:20.295] disp_monitor_validate_and_compute_layout:---OUTPUT---
[19:48:20.295]  rdpMonitor[0]: x:0, y:0, width:2560, height:1440, is_primary:1
[19:48:20.295]  rdpMonitor[0]: weston x:0, y:0, width:2560, height:1440
[19:48:20.295]  rdpMonitor[0]: physicalWidth:381, physicalHeight:214, orientation:0
[19:48:20.295]  rdpMonitor[0]: desktopScaleFactor:0, deviceScaleFactor:140
[19:48:20.295]  rdpMonitor[0]: scale:1, clientScale:1.00
[19:48:20.295] Head mode change:rdp-0 NEW width:2560, height:1440, scale:1, clientScale:1.000000
[19:48:20.295] move head/output rdp-0 (0,0) -> (0,0)
[19:48:20.295] client origin (0,0) is (0,0) in Weston space
[19:48:20.295] Client ExecOrder:0x00000008, Program:dummy-entry, WorkingDir:(null), RemoteApplicationArguments:(null)
[19:48:20.295] Client ExecOrder launching dummy-entry
[19:48:20.295] launching 'dummy-entry'
[19:48:20.296] Client: ClientSysparam: filterKeys
[19:48:20.296] compositor: executing 'dummy-entry' failed: No such file or directory
[19:48:20.296] Client: ClientSysparam: toggleKeys:62
[19:48:20.296] Client: ClientSysparam: stickyKeys:510
[19:48:20.296] Client: ClientSysparam: caretWidth:1
[19:48:20.296] Client: ClientSysparam: highContrast
[19:48:20.296] Client: ClientSysparam: taskbarPos:(left:0, top:1438, right:2560, bottom:1510)
[19:48:20.296] Client: ClientSysparam: mouseButtonSwap:0
[19:48:20.296] Client: ClientSysparam: keyboardPref:0
[19:48:20.296] Client: ClientSysparam: dragFullWindows:1
[19:48:20.296] Client: ClientSysparam: keyboardCues:0
[19:48:20.296] Client: ClientSysparam: workArea:(left:0, top:0, right:2560, bottom:1440)
[19:48:20.296] Translated workarea:(0,0)-(2560,1440) at rdp-0:(0,0)-(2560,1440)
[19:48:20.296] Client AppList caps version:4
[19:48:20.296] Client AppList client language id: zh_CN
[19:48:20.296] app_list_monitor_thread: startRdpNotifyEvent is signalled. 0 - zh_CN
[19:48:20.296] app_list_start_rdp_notify(): client language is changed from en_US to zh_CN
[19:48:20.296] app list folder[0]: /usr/share/applications
[19:48:20.296] find_icon_file: icon (network-wired) search retry:(1) global:(4)
[19:48:20.296] desktop file: /usr/share/applications/bvnc.desktop
[19:48:20.296]     Name[zh_CN]:Avahi VNC Server Browser (Arch)
[19:48:20.296]     Exec:/usr/bin/bvnc
[19:48:20.296]     TryExec:(null)
[19:48:20.296]     WorkingDir:(null)
[19:48:20.296]     Icon name:network-wired
[19:48:20.296]     Icon SVG :0
[19:48:20.296]     Icon file:(null)
[19:48:20.296]     Icon image:(nil)
[19:48:20.296] app list entry updated: Key:bvnc, Name:Avahi VNC Server Browser (Arch)
[19:48:20.296] free_app_entry(): Avahi VNC Server Browser (Arch): /usr/share/applications/bvnc.desktop
[19:48:20.297] desktop file: /usr/share/applications/btop.desktop is terminal based app
[19:48:20.297] app list entry failed to update: Key:btop
[19:48:20.297] free_app_entry(): (null): /usr/share/applications/btop.desktop
[19:48:20.297] desktop file: /usr/share/applications/fish.desktop is terminal based app
[19:48:20.297] app list entry failed to update: Key:fish
[19:48:20.297] free_app_entry(): (null): /usr/share/applications/fish.desktop
[19:48:20.297] desktop file: /usr/share/applications/org.gnupg.pinentry-qt5.desktop has NoDisplay specified
[19:48:20.297] app list entry failed to update: Key:pinentry-qt5
[19:48:20.297] free_app_entry(): (null): /usr/share/applications/org.gnupg.pinentry-qt5.desktop
[19:48:20.297] Client ExecOrder program terminated
[19:48:20.297] dummy-entry exited with status 255
[19:48:20.297] find_icon_file: icon (network-wired) search retry:(1) global:(4)
[19:48:20.297] desktop file: /usr/share/applications/avahi-discover.desktop
[19:48:20.297]     Name[zh_CN]:Avahi Zeroconf Browser (Arch)
[19:48:20.297]     Exec:/usr/bin/avahi-discover
[19:48:20.297]     TryExec:(null)
[19:48:20.297]     WorkingDir:(null)
[19:48:20.297]     Icon name:network-wired
[19:48:20.297]     Icon SVG :0
[19:48:20.297]     Icon file:(null)
[19:48:20.297]     Icon image:(nil)
[19:48:20.297] app list entry updated: Key:avahi-discover, Name:Avahi Zeroconf Browser (Arch)
[19:48:20.297] free_app_entry(): Avahi Zeroconf Browser (Arch): /usr/share/applications/avahi-discover.desktop
[19:48:20.297] desktop file: /usr/share/applications/kitty-open.desktop has NoDisplay specified
[19:48:20.297] app list entry failed to update: Key:kitty-open
[19:48:20.297] free_app_entry(): (null): /usr/share/applications/kitty-open.desktop
[19:48:20.297] desktop file: /usr/share/applications/zellij.desktop is terminal based app
[19:48:20.297] app list entry failed to update: Key:zellij
[19:48:20.297] free_app_entry(): (null): /usr/share/applications/zellij.desktop
[19:48:20.297] desktop file: /usr/share/applications/vim.desktop is terminal based app
[19:48:20.297] app list entry failed to update: Key:vim
[19:48:20.297] free_app_entry(): (null): /usr/share/applications/vim.desktop
[19:48:20.297] desktop file: /usr/share/applications/org.gnupg.pinentry-qt.desktop has NoDisplay specified
[19:48:20.297] app list entry failed to update: Key:pinentry-qt
[19:48:20.297] free_app_entry(): (null): /usr/share/applications/org.gnupg.pinentry-qt.desktop
[19:48:20.297] find_icon_file: icon (network-wired) search retry:(1) global:(4)
[19:48:20.297] desktop file: /usr/share/applications/bssh.desktop
[19:48:20.297]     Name[zh_CN]:Avahi SSH Server Browser (Arch)
[19:48:20.297]     Exec:/usr/bin/bssh
[19:48:20.297]     TryExec:(null)
[19:48:20.297]     WorkingDir:(null)
[19:48:20.297]     Icon name:network-wired
[19:48:20.297]     Icon SVG :0
[19:48:20.297]     Icon file:(null)
[19:48:20.297]     Icon image:(nil)
[19:48:20.297] app list entry updated: Key:bssh, Name:Avahi SSH Server Browser (Arch)
[19:48:20.297] free_app_entry(): Avahi SSH Server Browser (Arch): /usr/share/applications/bssh.desktop
[19:48:20.297] desktop file: /usr/share/applications/nvim.desktop is terminal based app
[19:48:20.297] app list entry failed to update: Key:nvim
[19:48:20.297] free_app_entry(): (null): /usr/share/applications/nvim.desktop
[19:48:20.298] desktop file: /usr/share/applications/org.wezfurlong.wezterm.desktop
[19:48:20.298]     Name[zh_CN]:WezTerm (Arch)
[19:48:20.298]     Exec:wezterm start --cwd .
[19:48:20.298]     TryExec:wezterm
[19:48:20.298]     WorkingDir:(null)
[19:48:20.298]     Icon name:org.wezfurlong.wezterm
[19:48:20.298]     Icon SVG :0
[19:48:20.298]     Icon file:/usr/share/icons/hicolor/128x128/apps/org.wezfurlong.wezterm.png
[19:48:20.298]     Icon image:0x7f261c021e20
[19:48:20.298] app list entry updated: Key:wezterm, Name:WezTerm (Arch)
[19:48:20.298] free_app_entry(): WezTerm (Arch): /usr/share/applications/org.wezfurlong.wezterm.desktop
[19:48:20.298] desktop file: /usr/share/applications/cmake-gui.desktop
[19:48:20.298]     Name[zh_CN]:CMake (Arch)
[19:48:20.298]     Exec:cmake-gui
[19:48:20.298]     TryExec:(null)
[19:48:20.298]     WorkingDir:(null)
[19:48:20.298]     Icon name:CMakeSetup
[19:48:20.298]     Icon SVG :0
[19:48:20.298]     Icon file:/usr/share/icons/hicolor/128x128/apps/CMakeSetup.png
[19:48:20.298]     Icon image:0x7f261c00bf80
[19:48:20.298] app list entry updated: Key:cmake-gui, Name:CMake (Arch)
[19:48:20.298] free_app_entry(): CMake (Arch): /usr/share/applications/cmake-gui.desktop
[19:48:20.299] desktop file: /usr/share/applications/kitty.desktop
[19:48:20.299]     Name[zh_CN]:kitty (Arch)
[19:48:20.299]     Exec:kitty
[19:48:20.299]     TryExec:kitty
[19:48:20.299]     WorkingDir:(null)
[19:48:20.299]     Icon name:kitty
[19:48:20.299]     Icon SVG :0
[19:48:20.299]     Icon file:/usr/share/pixmaps/kitty.png
[19:48:20.299]     Icon image:0x7f261c00c5f0
[19:48:20.299] app list entry updated: Key:kitty, Name:kitty (Arch)
[19:48:20.299] free_app_entry(): kitty (Arch): /usr/share/applications/kitty.desktop
[19:48:20.299] app list folder[1]: /usr/local/share/applications
[19:48:20.299] app list folder[2]: /var/lib/snapd/desktop/applications
[19:48:20.299] app list folder[3]: /var/lib/flatpak/exports/share/applications
[19:48:20.299] rdp_rail_notify_app_list(): rdp_peer 0x55e4fca9ce40
[19:48:20.299]     inSync: 1
[19:48:20.299]     syncStart: 1
[19:48:20.299]     syncEnd: 0
[19:48:20.299]     newAppId: 1
[19:48:20.299]     deleteAppId: 0
[19:48:20.299]     deleteAppProvider: 0
[19:48:20.299]     associateWindowId: 0
[19:48:20.299]     appId: wezterm
[19:48:20.299]     appGroup: (null)
[19:48:20.299]     appExecPath: wezterm
[19:48:20.299]     appWorkingDir: (null)
[19:48:20.299]     appDesc: WezTerm (Arch)
[19:48:20.299]     appIcon: 0x7f261c021e20
[19:48:20.299]     appProvider: (null)
[19:48:20.299]     appWindowId: 0x0
[19:48:20.299] rdp_rail_notify_app_list(): rdp_peer 0x55e4fca9ce40
[19:48:20.299]     inSync: 1
[19:48:20.299]     syncStart: 0
[19:48:20.299]     syncEnd: 0
[19:48:20.299]     newAppId: 1
[19:48:20.299]     deleteAppId: 0
[19:48:20.299]     deleteAppProvider: 0
[19:48:20.299]     associateWindowId: 0
[19:48:20.299]     appId: bssh
[19:48:20.299]     appGroup: (null)
[19:48:20.300]     appExecPath: /usr/bin/bssh
[19:48:20.300]     appWorkingDir: (null)
[19:48:20.300]     appDesc: Avahi SSH Server Browser (Arch)
[19:48:20.300]     appIcon: 0x55e4fcab3220
[19:48:20.300]     appProvider: (null)
[19:48:20.300]     appWindowId: 0x0
[19:48:20.300] rdp_rail_notify_app_list(): rdp_peer 0x55e4fca9ce40
[19:48:20.300]     inSync: 1
[19:48:20.300]     syncStart: 0
[19:48:20.300]     syncEnd: 0
[19:48:20.300]     newAppId: 1
[19:48:20.300]     deleteAppId: 0
[19:48:20.300]     deleteAppProvider: 0
[19:48:20.300]     associateWindowId: 0
[19:48:20.300]     appId: cmake-gui
[19:48:20.300]     appGroup: (null)
[19:48:20.300]     appExecPath: cmake-gui
[19:48:20.300]     appWorkingDir: (null)
[19:48:20.300]     appDesc: CMake (Arch)
[19:48:20.300]     appIcon: 0x7f261c00bf80
[19:48:20.300]     appProvider: (null)
[19:48:20.300]     appWindowId: 0x0
[19:48:20.300] rdp_rail_notify_app_list(): rdp_peer 0x55e4fca9ce40
[19:48:20.300]     inSync: 1
[19:48:20.300]     syncStart: 0
[19:48:20.300]     syncEnd: 0
[19:48:20.300]     newAppId: 1
[19:48:20.300]     deleteAppId: 0
[19:48:20.300]     deleteAppProvider: 0
[19:48:20.300]     associateWindowId: 0
[19:48:20.300]     appId: avahi-discover
[19:48:20.300]     appGroup: (null)
[19:48:20.300]     appExecPath: /usr/bin/avahi-discover
[19:48:20.300]     appWorkingDir: (null)
[19:48:20.300]     appDesc: Avahi Zeroconf Browser (Arch)
[19:48:20.300]     appIcon: 0x55e4fcab3220
[19:48:20.300]     appProvider: (null)
[19:48:20.300]     appWindowId: 0x0
[19:48:20.300] rdp_rail_notify_app_list(): rdp_peer 0x55e4fca9ce40
[19:48:20.300]     inSync: 1
[19:48:20.300]     syncStart: 0
[19:48:20.300]     syncEnd: 0
[19:48:20.300]     newAppId: 1
[19:48:20.300]     deleteAppId: 0
[19:48:20.300]     deleteAppProvider: 0
[19:48:20.300]     associateWindowId: 0
[19:48:20.300]     appId: bvnc
[19:48:20.300]     appGroup: (null)
[19:48:20.300]     appExecPath: /usr/bin/bvnc
[19:48:20.300]     appWorkingDir: (null)
[19:48:20.300]     appDesc: Avahi VNC Server Browser (Arch)
[19:48:20.300]     appIcon: 0x55e4fcab3220
[19:48:20.300]     appProvider: (null)
[19:48:20.300]     appWindowId: 0x0
[19:48:20.301] rdp_rail_notify_app_list(): rdp_peer 0x55e4fca9ce40
[19:48:20.301]     inSync: 1
[19:48:20.301]     syncStart: 0
[19:48:20.301]     syncEnd: 1
[19:48:20.301]     newAppId: 1
[19:48:20.301]     deleteAppId: 0
[19:48:20.301]     deleteAppProvider: 0
[19:48:20.301]     associateWindowId: 0
[19:48:20.301]     appId: kitty
[19:48:20.301]     appGroup: (null)
[19:48:20.301]     appExecPath: kitty
[19:48:20.301]     appWorkingDir: (null)
[19:48:20.301]     appDesc: kitty (Arch)
[19:48:20.301]     appIcon: 0x7f261c00c5f0
[19:48:20.301]     appProvider: (null)
[19:48:20.301]     appWindowId: 0x0
[19:48:20.412] Client: ClientSysparam: filterKeys
[19:48:20.412] Client: ClientSysparam: toggleKeys:62
[19:48:20.412] Client: ClientSysparam: stickyKeys:510
[19:48:20.412] Client: ClientSysparam: caretWidth:1
[19:48:20.412] Client: ClientSysparam: highContrast
[19:48:20.412] Pulse Audio Sink listener socket on /mnt/wslg/PulseAudioRDPSink
[19:48:20.412] xfixes selection notify event: owner 2097153
[19:48:20.412] our window, skipping
[19:48:20.412] Client: ClientSysparam: taskbarPos:(left:0, top:1438, right:2560, bottom:1510)
[19:48:20.412] Client: ClientSysparam: mouseButtonSwap:0
[19:48:20.412] Client: ClientSysparam: keyboardPref:0
[19:48:20.412] Client: ClientSysparam: dragFullWindows:1
[19:48:20.412] Client: ClientSysparam: keyboardCues:0
[19:48:20.412] Client: ClientSysparam: workArea:(left:0, top:0, right:2560, bottom:1440)
[19:48:20.412] Translated workarea:(0,0)-(2560,1440) at rdp-0:(0,0)-(2560,1440)
[19:48:22.303] retry_find_icon_file: icon (network-wired) retry count (1)
[19:48:22.303] find_icon_file: icon (network-wired) search retry:(2) global:(3)
[19:48:22.303] retry_find_icon_file: icon (network-wired) retry count (1)
[19:48:22.304] find_icon_file: icon (network-wired) search retry:(2) global:(3)
[19:48:22.304] retry_find_icon_file: icon (network-wired) retry count (1)
[19:48:22.304] find_icon_file: icon (network-wired) search retry:(2) global:(3)
[19:48:24.306] retry_find_icon_file: icon (network-wired) retry count (2)
[19:48:24.306] find_icon_file: icon (network-wired) search retry:(3) global:(3)
[19:48:24.306] retry_find_icon_file: icon (network-wired) retry count (2)
[19:48:24.306] find_icon_file: icon (network-wired) search retry:(3) global:(3)
[19:48:24.306] retry_find_icon_file: icon (network-wired) retry count (2)
[19:48:24.306] find_icon_file: icon (network-wired) search retry:(3) global:(3)
[19:48:24.632] RDP Sink version (1 - 1)
[19:48:26.308] retry_find_icon_file: icon (network-wired) retry count (3)
[19:48:26.308] find_icon_file: icon (network-wired) search retry:(4) global:(3)
[19:48:26.308] retry_find_icon_file: icon (network-wired) retry count (3)
[19:48:26.308] find_icon_file: icon (network-wired) search retry:(4) global:(3)
[19:48:26.308] retry_find_icon_file: icon (network-wired) retry count (3)
[19:48:26.308] find_icon_file: icon (network-wired) search retry:(4) global:(3)
[19:48:28.311] retry_find_icon_file: icon (network-wired) retry count (4)
[19:48:28.311] find_icon_file: icon (network-wired) search retry:(5) global:(2)
[19:48:28.311] retry_find_icon_file: icon (network-wired) retry count (4)
[19:48:28.311] find_icon_file: icon (network-wired) search retry:(5) global:(1)
[19:48:28.311] retry_find_icon_file: icon (network-wired) retry count (4)
[19:48:28.311] find_icon_file: icon (network-wired) search retry:(5) global:(0)
[19:48:38.261] xfixes selection notify event: owner 2097153
[19:48:38.261] our window, skipping
[19:48:48.088] xfixes selection notify event: owner 2097153
[19:48:48.088] our window, skipping
[19:48:56.862] xfixes selection notify event: owner 2097153
[19:48:56.862] our window, skipping
[19:49:03.032] xfixes selection notify event: owner 2097153
[19:49:03.032] our window, skipping
[19:49:45.972] xfixes selection notify event: owner 2097153
[19:49:45.972] our window, skipping
[19:49:55.738] xfixes selection notify event: owner 2097153
[19:49:55.738] our window, skipping
[19:50:15.820] xfixes selection notify event: owner 2097153
[19:50:15.820] our window, skipping
[19:51:05.017] xfixes selection notify event: owner 2097153
[19:51:05.017] our window, skipping
CarterLi commented 1 day ago

.wslconfig

[wsl2]
guiApplications=true
swap=0
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true
nestedVirtualization=false
#kernel=C:\\Users\\zhang\\Arch\\bzImage-x86_64

[experimental]
autoMemoryReclaim=gradual
useWindowsDnsCache=true
bestEffortDnsParsing=true

/etc/wsl.conf

[boot]
systemd=true

[automount]
enabled=true
options="metadata"