Better way to set/notify DISPLAY for "server"?
The current client/server (a.k.a. factory?) architecture of gnome-terminal relies on the the DISPLAY environmental variable that is imported/updated into dbus(/systemd) to work, which means it's utterly broken for multiple X servers (e.g. an/some additional Xvfb) set up / run with the same user.
Is there no better/alternative way to do this in dbus for this sort of "communication"?
gnome-terminal (client) executable should make use of the "general" environmental variables (where DISPLAY is actually DISPLAY/X-specific) to start its "server" on the right DISPLAY. The server should be started as DISPLAY-specific instance (by making use of the app id feature?).
I don't know if that's possible with dbus, but if it's not, should it even be used for this client/server architecture anymore?
P.S. Or, whatever the "server" is for, it should be DISPLAY-independent (i.e. work on multiple X simultaneously, determine which to work on based on the "clients'" request).