wslg icon indicating copy to clipboard operation
wslg copied to clipboard

open GUI app always get dbus warning

Open zzdywc opened this issue 3 years ago • 4 comments

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

zzdywc avatar Mar 07 '22 14:03 zzdywc

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.

TheNavyBear avatar Feb 01 '24 18:02 TheNavyBear

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.

Thank you @TheNavyBear for your help. Even in Feb 2025, this problem persists. Your solution worked for me regarding another GUI app that was giving the same error message =)

mikaere66 avatar Feb 11 '25 03:02 mikaere66

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.

Thank you @TheNavyBear for your help. Even in Feb 2025, this problem persists. Your solution worked for me regarding another GUI app that was giving the same error message =)

honestly, I'm not expect this problem will get fixed, because this is a small problem that just have some warning to english native people, but if you're some non-english user, it's a little bit annoy. but still thank you to reply this dusted problem.

zzdywc avatar Feb 12 '25 10:02 zzdywc

honestly, I'm not expect this problem will get fixed, because this is a small problem that just have some warning to english native people, but if you're some non-english user, it's a little bit annoy. but still thank you to reply this dusted problem.

It's not just a warning though. The app that I was having a problem with would not save any of its settings at all, so I was stuck with the defaults, until after I installed the dbus-x11 package.

mikaere66 avatar Feb 12 '25 11:02 mikaere66