HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 123

Xresources, Xstartup, Xsession

Page 123 highlights

The Desktop Environment 1. The dtlogin executable is started as part of the init process that occurs during the system boot sequence. 2. dtlogin reads /usr/dt/config/Xconfig to get a list of resources with which to configure the login process. It is at this point that dtlogin first reads configuration files like Xaccess, Xservers, Xresources, Xstartup, Xsession, and Xreset and gets the values of a number of appearance and behavior resources. 3. dtlogin reads two files in /usr/dt/config: • Xservers or the file identified by the Dtlogin*servers resource setting in Xconfig • Xresources or the file identified by the Dtlogin*resources resource setting in Xconfig 4. dtlogin starts an X server and a child dtlogin for each local display. 5. Each child dtlogin invokes dtgreet, the login screen. 6. When a login and password are validated, a child dtlogin sets certain environment variables to default values. 7. The child dtlogin runs /usr/dt/config/Xstartup. 8. The child dtlogin runs /usr/dt/config/Xsession. 9. Xsession runs dthello, the copyright screen. 10. Xsession reads $HOME/.dtprofile, setting any additional environment variables or overwriting those set previously by dtlogin. 11. The child dtlogin invokes the session manager, dtsession. 12. dtsession restores the appropriate session. For instance, to restore the current session, dtsession, reads dt.resources and dt.session in $HOME/.dt/sessions/current. At logout, the reverse occurs. The session is saved, and dtlogin runs /usr/dt/config/Xreset. After Xreset runs, dtlogin again displays the login screen as in step 4. Customizing CDE CDE can be customized in many ways to give the desktop environment a personal appearance. CAUTION: Before any customizations are begun it is a good idea to make hardcopy printouts of all configuration files that will be edited. Doing so will ensure that if serious mistakes are made and CDE does not respond correctly, you have copies of the original that you can use to return the environment to its pristine un-edited form. Adding or Removing Objects from the Front Panel There are two ways to add objects to the front panel: • Drag and drop the new objects into a slideup subpanel, and then make them the default for that subpanel. • Modify the /etc/dt/appconfig/types/C/dtwm.fp configuration file. To add an object using the first method: 1. Drag the application icon that you want as a front panel button from an application manager view and drop it onto the installation section of the appropriate subpanel. 118

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

The Desktop Environment
118
1.
The
dtlogin
executable is started as part of the
init
process that occurs during the system boot
sequence.
2.
dtlogin
reads
/usr/dt/config/Xconfig
to get a list of resources with which to configure the login
process. It is at this point that
dtlogin
first reads configuration files like
Xaccess, Xservers,
Xresources, Xstartup, Xsession,
and
Xreset
and gets the values of a number of appearance and
behavior resources.
3.
dtlogin
reads two files in
/usr/dt/config:
Xservers
or the file identified by the
Dtlogin*servers
resource setting in
Xconfig
Xresources
or the file identified by the
Dtlogin*resources
resource setting in
Xconfig
4.
dtlogin
starts an X server and a child
dtlogin
for each local display.
5.
Each child
dtlogin
invokes
dtgreet
, the login screen.
6.
When a login and password are validated, a child
dtlogin
sets certain environment variables to default
values.
7.
The child
dtlogin
runs
/usr/dt/config/Xstartup
.
8.
The child
dtlogin
runs
/usr/dt/config/Xsession
.
9.
Xsession
runs
dthello,
the copyright screen.
10.
Xsession
reads
$HOME/.dtprofile,
setting any additional environment variables or overwriting those
set previously by
dtlogin.
11. The child
dtlogin
invokes the session manager,
dtsession.
12.
dtsession
restores the appropriate session. For instance, to restore the current session,
dtsession,
reads
dt.resources
and
dt.session
in
$HOME/.dt/sessions/current.
At logout, the reverse occurs. The session is saved, and
dtlogin
runs
/usr/dt/config/Xreset
. After
Xreset
runs,
dtlogin
again displays the login screen as in step 4.
Customizing CDE
CDE can be customized in many ways to give the desktop environment a personal appearance.
CAUTION:
Before any customizations are begun it is a good idea to make hardcopy printouts of all
configuration files that will be edited. Doing so will ensure that if serious mistakes are made and CDE does
not respond correctly, you have copies of the original that you can use to return the environment to its
pristine un-edited form.
Adding or Removing Objects from the Front Panel
There are two ways to add objects to the front panel:
Drag and drop the new objects into a slideup subpanel, and then make them the default for that
subpanel.
Modify the
/etc/dt/appconfig/types/C/dtwm.fp
configuration file.
To add an object using the first method:
1.
Drag the application icon that you want as a front panel button from an application manager view and
drop it onto the installation section of the appropriate subpanel.