DEV Community

Discussion on: Getting Up and Running with the Windows Subsystem for Linux

Collapse
 
darksmile92 profile image
Robin Kretzschmar

I had strange issues, for example tilix could not save the preferences and showed a dbus error.

Found the solution In this Reddit post:

3) Now we need to fix dbus: The issue with this was that by default, dbus uses unix sockets to communication, which windows bash at the moment doesn’t support. So we just need to tell it to use tcp. In /etc/dbus-1/session.conf, you need to replace unix:tmpdir=/tmp with tcp:host=localhost,port=0 and then you are done. Note this file needs root to edit. An easy way to do this is to execute the following:

sudo sed -i β€˜s$<listen>.*</listen>$<listen>tcp:host=localhost,port=0</listen>$’ /etc/dbus-1/session.conf

Don't forget to restart the session afterwards!