microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
10.21k stars 305 forks source link

open GUI app always get dbus warning #675

Open zzdywc opened 2 years ago

zzdywc commented 2 years ago

Environment

 Win32NT             10.0.22000.0 Microsoft Windows NT 10.0.22000.0

Release:        20.04

wslg 1.026

Steps to reproduce

WSL logs:

Expected behavior

no warning show.

Actual behavior

not only nautilus have this problem,I test gedit gtkwave etc,every app that I use are same.

(org.gnome.Nautilus:2448): WARNING : 21:53:29.340: Error on getting connection: Failed to load SPARQL backend: Error spawning command line ?dbus-launch --autolaunch= --binary-syntax --close-stderr?: Child process exited with code 1

(org.gnome.Nautilus:2448): libunity-CRITICAL **: 21:53:29.421: file unity-launcher.c: line 1618: unexpected error: Error spawning command line “dbus-launch --autolaunch= --binary-syntax --close-stderr”: Child process exited with code 1 (g-spawn-exit-error-quark, 1)

(org.gnome.Nautilus:2448): libunity-CRITICAL **: 21:53:29.421: unity_launcher_entry_dbus_impl_construct: assertion 'conn != NULL' failed

(org.gnome.Nautilus:2448): libunity-CRITICAL **: 21:53:29.422: unity-inspector.vala:96: Unable to connect to session bus: Error spawning command line “dbus-launch --autolaunch= --binary-syntax --close-stderr”: Child process exited with code 1

(org.gnome.Nautilus:2448): dconf-WARNING **: 21:53:29.473: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch= --binary-syntax --close-stderr”: Child process exited with code 1

(org.gnome.Nautilus:2448): dconf-WARNING **: 21:53:29.473: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch= --binary-syntax --close-stderr”: Child process exited with code 1

(org.gnome.Nautilus:2448): CRITICAL : 21:53:29.483: update_dbus_opened_locations: assertion 'dbus_object_path' failed

(org.gnome.Nautilus:2448): WARNING : 21:53:29.484: Unable to get contents of the bookmarks file: Error opening file /home/zzdywc/.gtk-bookmarks: No such file or directory

(org.gnome.Nautilus:2448): WARNING : 21:53:29.484: Unable to get contents of the bookmarks file: Error opening file /home/zzdywc/.gtk-bookmarks: No such file or directory

(org.gnome.Nautilus:2448): CRITICAL : 21:53:29.501: update_dbus_opened_locations: assertion 'dbus_object_path' failed

(org.gnome.Nautilus:2448): dconf-WARNING **: 21:53:29.501: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch= --binary-syntax --close-stderr”: Child process exited with code 1

(org.gnome.Nautilus:2448): dconf-WARNING **: 21:53:33.785: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch= --binary-syntax --close-stderr”: Child process exited with code 1

(org.gnome.Nautilus:2448): dconf-WARNING **: 21:53:33.785: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch= --binary-syntax --close-stderr”: Child process exited with code 1

TheNavyBear commented 9 months ago

If you run 'sudo apt install dbus-x11' your GUI apps should work. Somehow the WSL system is not flagging dbus-x11 as a required dependency of x11/GUI apps.