Can't run Gnome-terminal with Xstart or in Xshell

PROBLEM DESCRIPTION or QUESTION


When I try to run Gnome-terminal in CentOS 8 with an Xstart session, the following error message is displayed.
# Error retrieving accessibility bus address: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

# Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached


RESOLUTION



Gnome apps of more recent Linux distributions need to communicate with each other with a message bus using DBUS.

With XDMCP connections, the XDMCP daemon forces the DBUS daemon to start and set the relevant environments. SSH connections, on the other hand, such as an Xstart session or within Xshell, require that the user create the environment.

[test@centos8 ~]$ export $(dbus-launch)
[test@centos8 ~]$ env |grep DBUS
DBUS_SESSION_BUS_WINDOWID=8388609
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-CFkZqoKe16,guid=b6060d234d44b2a121d56e775fd1e64f
DBUS_SESSION_BUS_PID=140647
[test@centos8 ~]$ gnome-terminal


When using an Xstart connection, the Execution Command should be:

export $(dbus-launch); gnome-termnal