Daylight applications have a unified options manager whereby options and allowed values are defined, defaults specified, and non-default values can be specified in several ways according to defined precedence.
In this exercise, you will use each of the methods of specifying an option value and verify that it works.
The system profile is by default at
$DY_ROOT/etc/unix/dy_sysprofile.opt
. It uses
the same syntax as the user profile. This default can be
overridden by $DY_SYSPROFILE
. Log in as thor
and copy this file to /daylight
. Define
$DY_SYSPROFILE
to be
/daylight/dy_sysprofile.opt
for both users thor
and mug. Add the same option specification and verify that it
works.
The default user profile is $HOME/dy_profile.opt
.
Create this file if it does not exist and add the line:
THOR_SHOW_FULLTDT = TRUE
This option specifies that xvthor
shows
the full datatree in the TDT Widget when one is found.
Try launching xvthor
and doing a TDT
lookup with and without this profile entry to verify the
result.
With no entry for THOR_SHOW_FULLTDT
in either profile, try setting environment variable
$DY_THOR_SHOW_FULLTDT
to
TRUE
and verify that this works also.
Try xvthor -THOR_SHOW_FULLTDT TRUE
.