<div dir="ltr"><div>dbus-user-session is installed, so I don't think that's the problem. From /var/log/apt/history.log, it looks like it came through when I installed gnome-terminal, probably through some circuitous dependency if it's not explicitly required.</div><div><br></div>I removed dbus-x11 to test. Now I get a different error than the one I had before:<div><br></div><div>=======================</div><div><div>hedges@bar:~$ dpkg --get-selections | grep dbus-user-session</div><div>dbus-user-session<span style="white-space:pre-wrap"> </span>install</div></div><div><br></div><div><div>hedges@bar:~$ gnome-terminal</div><div>Error constructing proxy for org.gnome.Terminal:/org/gnome/<wbr>Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached</div><div><br></div><div>hedges@bar:~$ dpkg --get-selections | grep dbus-x11</div><div><br></div><div>hedges@bar:~$ systemctl status --user dbus.service dbus.socket</div></div><div><div>● dbus.service - D-Bus User Message Bus</div><div> Loaded: loaded (/usr/lib/systemd/user/dbus.<wbr>service; indirect; vendor preset: enabled)</div><div> Active: active (running) since Thu 2017-08-10 21:10:25 UTC; 8min ago</div><div> Docs: man:dbus-daemon(1)</div><div> Main PID: 3786 (dbus-daemon)</div><div> CGroup: /user.slice/user-1000.slice/<wbr>user@1000.service/dbus.service</div><div> └─3786 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation</div><div><br></div><div>● dbus.socket - D-Bus User Message Bus Socket</div><div> Loaded: loaded (/usr/lib/systemd/user/dbus.<wbr>socket; disabled; vendor preset: enabled)</div><div> Active: active (running) since Thu 2017-08-10 21:10:22 UTC; 8min ago</div><div> Listen: /run/user/1000/bus (Stream)</div><div> Process: 3762 ExecStartPost=/bin/systemctl --user set-environment DBUS_SESSION_BUS_ADDRESS=unix:<wbr>path=/run/user/1000/bus (code=exited, status=0/SUCCESS)</div><div> CGroup: /user.slice/user-1000.slice/<wbr>user@1000.service/dbus.socket</div></div><div><br></div><div><div>hedges@bar:~$ echo $DBUS_SESSION_BUS_ADDRESS</div><div>unix:path=/run/user/1000/bus</div><div><br></div><div>hedges@bar:~$ echo $XDG_RUNTIME_DIR</div><div>/run/user/1000</div><div><br></div><div>hedges@bar:~$ ls -lah /run/user/1000</div><div>total 0</div><div>drwx------ 4 hedges hedges 100 Aug 10 21:10 .</div><div>drwxr-xr-x 3 root root 60 Aug 10 21:10 ..</div><div>srw-rw-rw- 1 hedges hedges 0 Aug 10 21:10 bus</div><div>drwx------ 2 hedges hedges 120 Aug 10 21:10 gnupg</div><div>drwxr-xr-x 3 hedges hedges 100 Aug 10 21:10 systemd</div></div><div><br></div><div>=======================</div><div><br></div><div>I installed dbus-x11 again, but I got the same error again. Rebooted and same error.</div><div><br></div><div><div>Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached</div></div><div><br></div><div>I verified that other X programs are working through the ssh tunnel, like xeyes and gvim.</div><div><br></div><div>Thanks.</div><div>Mark</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 10, 2017 at 7:14 AM, Simon McVittie <span dir="ltr"><<a href="mailto:smcv@debian.org" target="_blank">smcv@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On Thu, 10 Aug 2017 at 00:31:24 -0700, Mark Hedges wrote:<br>
> Changing the recommends to depends for dbus-user-session won't fix the<br>
> immediate problem, unless gnome-terminal is changed to use something other than<br>
> `dbus-launch` to do whatever it is that it's trying to do. dbus-x11 provides<br>
> the dbus-launch executable. dbus-user-session does not.<br>
<br>
</span>% cd gnome-terminal-3.22.2<br>
% ack dbus-launch<br>
[search produces no results]<br>
<br>
If gnome-terminal strictly requires a working D-Bus session bus, which I<br>
suspect it might due to being implemented with a client/server model,<br>
then the correct dependency is to bump the existing Recommends on<br>
default-dbus-session-bus | dbus-session-bus up to a Depends, as seen<br>
in e.g. gcr and gnome-keyring. In practice this ensures that either<br>
dbus-user-session or dbus-x11 is installed. I have now done this in svn.<br>
<br>
If the DBUS_SESSION_BUS_ADDRESS environment variable is not set, D-Bus<br>
implementations like gio (GDBus) and libdbus are expected to look for<br>
$XDG_RUNTIME_DIR/bus (which is set up by dbus-user-session on systemd<br>
systems, and could in theory be provided by a different implementation<br>
of the dbus-session-bus virtual package on non-systemd systems if someone<br>
does the work), then if that is not found, fall back to running dbus-launch<br>
(which is provided by dbus-x11). gnome-terminal uses gio for all its<br>
D-Bus needs, so it has this behaviour.<br>
<br>
See <a href="https://lists.debian.org/debian-devel/2016/08/msg00554.html" rel="noreferrer" target="_blank">https://lists.debian.org/debia<wbr>n-devel/2016/08/msg00554.html</a> for<br>
recommendations. dbus-launch is run by the implementation of the<br>
"autolaunch:" pseudo-transport that is mentioned in that mail.<br>
<br>
Regards,<br>
S<br>
</blockquote></div><br></div></div>