gnome-terminal 启动错误

问题描述: 终端下启动gnome-terminal 出现错误:

1
2
Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error spawning  
command line 'dbus-launch --autolaunch=9fc7e31fca2ee9308708ee4b5bff7e1f --binary-syntax --close-stderr': Child process exited with code 1

使用命令dbus-launch gnome-terminal可正常启动。
解决方法:在.bashrc文件中添加

1
export $(dbus-launch)