Quite often, I need to start an xterm or similiar in a user session that has no
hook for doing this. In that case, I'm running something like:
DISPLAY=:106 XAUTHORITY=/var/opt/thinlinc/sessions/cendio/last/Xauthority xterm
This works, but it's a bit hackish, and you'll need to dig up the display number
etc by hand. We could provide a tool "tl-run-in-session" or similiar that
One crazy idea is to actually look in /proc, for the complete environment for,
say, xinit. That would makes it possible to get the complete environment.
(In reply to comment #0)
> Quite often, I need to start an xterm or similiar in a user session that has no
> hook for doing this. In that case, I'm running something like:
> DISPLAY=:106 XAUTHORITY=/var/opt/thinlinc/sessions/cendio/last/Xauthority xterm
Bug 5265 provides a partial solution, using the "tl-env" command. With this command, instead of the above, one can simply do:
tl-env -d xterm
or if you are running as a root:
USER=astrand tl-env -d xterm
We don't have a clear use case here, so closing this bug until a more substantial demand shows up.