Bug 3510 - Annoying to have to choose a profile every time
Summary: Annoying to have to choose a profile every time
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Other (show other bugs)
Version: 3.0.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Peter Åstrand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-03 16:00 CEST by Peter Åstrand
Modified: 2022-08-16 13:14 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Peter Åstrand cendio 2010-05-03 16:00:24 CEST
By default, TL allows the user to fully configure the session startup, using the ~/.thinlinc/xstartup mechanism. However, very often, what you want to do is just select a certain profile. This is currently not every easy to achieve. xstartup.default calls 

tl-run-xstartup.d
tl-run-profile
tl-run-xlogout.d

But tl-run-xstartup.d is a all-or-nothing thing: If you include it, you'll get the profile selector dialog, no matter what. The only exception is if you have export TLCOMMAND. Works for tl-run-windesk, but still a bit ugly. 

I think this should be easier. Perhaps tl-select-profile should simply exit if TLPROFILE is already defined?
Comment 1 Peter Åstrand cendio 2013-10-02 15:07:51 CEST
One somewhat ugly solution:

#!/bin/bash
TLPROFILE=windows
export TLCOMMAND=`tl-config /profiles/$TLPROFILE/cmdline`
. /opt/thinlinc/etc/xstartup.default
Comment 2 Pierre Ossman cendio 2019-05-21 12:36:06 CEST
The scenario here is that the system has multiple possible profiles and the user wants to avoid having to select one every time they log in.

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