idesk icon titles understand environment variables.

In an icon definition file, if the keyword Caption
string starts with "$", it is expanded
from user's environment, examples:

Caption: $USER
Caption: $HOME