dbus

so if you are getting a dbus (failed to connect to the D-BUS- session bus: did not receive a reply) error while running a few gui applications on ubuntu bash for windows there is a fix fore this, your mileage may vary for some gui app just will not work!

Lets edit the file /etc/dbus-1/sessions.conf

sudo nano /etc/dbus-1/sessions.conf

tcp

and replace the line

<listen>unix:tmpdir=/tmp</listen>

with

<listen>tcp:host=localhost,port=0</listen>

this way it will redirect your dbus to your xming server on tcp port 0

 

regards,

Don