wslg: GUI apps not starting

Windows build number:

10.0.22000.0

Your Distribution version:

20.04

Your WSL versions:

version WSL: 0.68.4.0 kernel: 5.15.68.1 version WSLg: 1.0.44 version MSRDC: 1.2.3401 version Direct3D: 1.606.4 version DXCore: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22000.978

Steps to reproduce:

  1. Enable systemd
  2. Try to snap run gedit

WSL logs:

cat /mnt/wslg/pulseaudio.log

W: [pulseaudio] authkey.c: Failed to open cookie file '/home/wslg/.config/pulse/cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to load authentication key '/home/wslg/.config/pulse/cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to open cookie file '/home/wslg/.pulse-cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to load authentication key '/home/wslg/.pulse-cookie': No such file or directory
E: [pulseaudio] module-console-kit.c: GetSessionsForUnixUser() call failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files
E: [pulseaudio] module.c: Failed to load module "module-console-kit" (argument: ""): initialization failed.
E: [rdp-sink] module-rdp-sink.c: RDP Sink - Trying to connect to /mnt/wslg/PulseAudioRDPSink
E: [rdp-sink] module-rdp-sink.c: Connected failed
E: [rdp-sink] module-rdp-sink.c: RDP Sink - Trying to connect to /mnt/wslg/PulseAudioRDPSink
E: [rdp-sink] module-rdp-sink.c: Connected failed

weston

[17:04:49.490] CreateWndow(): rdp_peer is not initalized
[17:04:49.490] CreateWndow(): rdp_peer is not initalized
[17:04:49.490] CreateWndow(): rdp_peer is not initalized
[17:04:49.490] CreateWndow(): rdp_peer is not initalized
[17:04:49.490] CreateWndow(): rdp_peer is not initalized
[17:04:49.490] CreateWndow(): rdp_peer is not initalized
[17:04:49.490] CreateWndow(): rdp_peer is not initalized
[17:04:49.490] CreateWndow(): rdp_peer is not initalized
[17:04:49.490] CreateWndow(): rdp_peer is not initalized
[17:04:49.490] CreateWndow(): rdp_peer is not initalized
[17:04:49.490] CreateWndow(): rdp_peer is not initalized
[17:04:49.534] app_list_monitor_thread: loadIconEvent is signalled. gedit
[17:04:49.534] app_list_monitor_thread: entry (nil), image (nil)
[17:04:49.534] set_window_icon(): rdp_peer is not initalized

stderr

<4>WSLGd: FontMonitor: monitoring thread started.
<4>WSLGd: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts, and it is *not* added to X11 font path
<4>WSLGd: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts/X11, and it is *not* added to X11 font path
<4>WSLGd: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts/X11/Type1, and it is added to X11 font path
<4>WSLGd: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts/X11/cyrillic, and it is added to X11 font path
<4>WSLGd: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts/X11/encodings, and it is *not* added to X11 font path
<4>WSLGd: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts/X11/encodings/large, and it is *not* added to X11 font path
<4>WSLGd: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts/X11/misc, and it is added to X11 font path
<4>WSLGd: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts/X11/util, and it is *not* added to X11 font path
<3>WSLGd: Exception: No such file or directory @../ProcessMonitor.cpp:72 (LaunchProcess)
<4>WSLGd: /mnt/c/Users/redde/AppData/Local/Microsoft/WindowsApps/MicrosoftCorporationII.WindowsSubsystemForLinux_8wekyb3d8bbwe/msrdc.exe exited with status 1.
<3>WSLGd: Exception: No such file or directory @../ProcessMonitor.cpp:72 (LaunchProcess)
<4>WSLGd: /mnt/c/Users/redde/AppData/Local/Microsoft/WindowsApps/MicrosoftCorporationII.WindowsSubsystemForLinux_8wekyb3d8bbwe/msrdc.exe exited with status 1.
<3>WSLGd: Exception: No such file or directory @../ProcessMonitor.cpp:72 (LaunchProcess)
<4>WSLGd: /mnt/c/Users/redde/AppData/Local/Microsoft/WindowsApps/MicrosoftCorporationII.WindowsSubsystemForLinux_8wekyb3d8bbwe/msrdc.exe exited with status 1.
dbus[1380]: Unknown username "systemd-oom" in message bus configuration file
<3>WSLGd: Exception: No such file or directory @../ProcessMonitor.cpp:72 (LaunchProcess)
dbus[1380]: Unknown username "pulse" in message bus configuration file

WSL dumps:

No response

Expected behavior:

No response

Actual behavior:

After enabling systemd I faced with the problem that I cant launch GUI apps. When I just enabled systemd, downloaded sublime-text, and its worked good, /snap/bin/subl lanunched sublime-text. But on next day I can’t launch it, and as other apps like gedit, xcalc, xeyes, and other GUI apps.

gedit:

sudo snap run gedit
(gedit:8274): Gdk-WARNING **: 17:08:34.310: Settings portal not found: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:8274): Gdk-CRITICAL **: 17:08:34.335: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

sublime text: for command /snap/bin/subl no reaction but in syslog I see Oct 7 17:09:10 DESKTOP-ER4032A systemd[1]: Started snap.sublime-text.subl.41000325-78b8-4053-9611-ee587a681ff3.scope.

And as I understand there are always some problems with dbus.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

@timurkhakhalev, thanks, there is known issue with group policy which refuse connection with WSLg, but your case is something different, and I will need more information to determine the cause, would you please report the issue using Feedback Hub app? please select category as below, and put the link to this GitHub page at “Explain in more detail (optional)” section, thanks!

image