Win*_*nix 3 xfce gedit xubuntu windows-subsystem-for-linux
我正在使用 Windows Subsystem for Linux (WSL) 和 VcXsrv windows manager (GUI) for Linux under Windows with Xfce4 from,Xubuntu-Desktop每次启动时都会收到此错误消息gedit:
** (gedit:143): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-qyusGiP2Dq: Connection refused
Run Code Online (Sandbox Code Playgroud)
此外,该错误似乎会在运行之前导致“滞后” gedit(它做得很好,除了很少在sudo -h煎炸东西时),但错误消息与感知的“滞后”一样令人不安。
与Unix 和 Linux上的此线程类似,该错误是由“可访问性警告”引起的,即所谓的错误。
解决方案是编辑~/.bashrc文件并放入以下行(注释(以 开头#)是可选的):
# gedit error: ** (gedit:143): WARNING **: Couldn't connect to accessibility
# bus: Failed to connect to socket /tmp/dbus-qyusGiP2Dq: Connection refused
# As per: https://unix.stackexchange.com/questions/230238/starting-x-applications-from-the-terminal-and-the-warnings-that-follow
# This also speeds up gedit load time
export NO_AT_BRIDGE=1
Run Code Online (Sandbox Code Playgroud)
错误消息将会消失,并且gedit加载速度似乎会更快(至少在 Samsung Pro 960 上,Linux 上的测试速度为 2.2 GBps,Windows 10 上的测试速度为 3.4 GBps)。
| 归档时间: |
|
| 查看次数: |
1538 次 |
| 最近记录: |