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
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?
One somewhat ugly solution:
export TLCOMMAND=`tl-config /profiles/$TLPROFILE/cmdline`
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.