Bug 1685 - Provide a tool for starting an application in a users session
Summary: Provide a tool for starting an application in a users session
Status: CLOSED WONTFIX
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.4.1
Hardware: PC Linux
: P2 Enhancement
Target Milestone: 4.10.0
Assignee: Peter Åstrand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-23 09:03 CET by Peter Åstrand
Modified: 2019-01-08 13:12 CET (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Peter Åstrand cendio 2005-11-23 09:03:16 CET
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
simplifies this.
Comment 1 Peter Åstrand cendio 2006-06-19 13:37:12 CEST
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. 
Comment 2 Peter Åstrand cendio 2014-09-22 09:14:56 CEST
(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
Comment 3 Pierre Ossman cendio 2019-01-08 13:12:09 CET
We don't have a clear use case here, so closing this bug until a more substantial demand shows up.

Note You need to log in before you can comment on or make changes to this bug.