yuk7 / ArchWSL

ArchLinux based WSL Distribution. Supports multiple install.
https://git.io/archwsl
MIT License
6.89k stars 202 forks source link

Failed to connect to the D-BUS session bus #73

Closed elswerky closed 5 years ago

elswerky commented 5 years ago

how to fix this error on arch wsl ?? it appears that ubutnu18.04 doesn't has this error

sometimes i face crash in arch wsl especially when i use text editor like gedit (on closing it ,,sometimes not always ) ,,, i use x410 server ,, i reported this issue to x410 developers ,,, they helped me with a commad to prevent this crash ,,,, when i used it in ubuntu it worked fine ,,,

but on arch it doesn't work at all and i get failed to connect to dbus

plz help me fix this

https://token2shell.com/howto/x410/customizing-xfce-desktop-for-ubuntu-wsl/ here ,,they provided a fix for crash ,,but it doesn't work on arch_wsl with me ,,,but works with ubuntu1804

fyt000 commented 5 years ago

I've ran into this issue as well

Alia5 commented 5 years ago

~/.bashrc

export DISPLAY=:0.0
export LIBGL_ALWAYS_INDIRECT=1

export $(dbus-launch) # <----- that's the key here!