WSL(Linux子系统) gedit 报错 failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

安装下面这些包可能会解决问题

  1.  
    sudo apt-get install x11-xserver-utils dconf-editor dbus-x11 -y
  2.  
    xhost +

xhost用于获取显示的权限

原文地址:https://www.cnblogs.com/apolloren/p/14332504.html