83
CDE/Motif PST
CDEnext
X P
RINT
C
ONFIGURATION
D
ATABASES
6.1
Configuration Files Overview
Configuration files provide the raw information that is used by the X Print Service components. Strictly speaking,
the configuration files, print dialog manager, and ddx drivers of the print server form a matched set. The
configuration files, though, have been designed to be as flexible as possible.
PURPOSE
Provide configuration information for X Print Service components.
DESCRIPTION
Most of the configuration files are in the form of an XRM resource file. This provides maximum flexibility.
The hierarchical nature of the data base avoids name clashes and wild cards can be used to signify that
certain characteristics apply to many printers. Also, additional attributes can be added later.
This rest of this chapter will document the configuration directories and files used by the X Print Service.
$XPCONFIGDIR is an environment variable read by the X print server, that defines the root of the
configuration directory hierarchy. If $XPCONFIGDIR is not defined, the server will default to
<XRoot>/
lib/X11
, where
<XRoot>
is the root of the X11 install tree. Determining configuration values is
performed as follows:
1.
Search $XPCONFIGDIR
/C/print
to obtain default values from a configuration file.
2.
If the configuration file is not found, server-defined defaults will be used.
3.
For locales other than C, search $XPCONFIGDIR
/
$LANG
/print
and use the configuration
file values to augment the defaults determined above.
One exception to this is the
Xprinters
file. This file indicates which printers will be managed by the X
Print Server. The path and name of this file is indicated by the
-XpFile
command line option defined by
the X Print Server. If the command line option is not present, the X Server will default to
$XPCONFIGDIR
/C/print/Xprinters
. This file is optional.
There are several types of configuration files. Within several subdirectories:
x
A file that indicates which printers will be managed by the X Print Server. This file is referred to
as the
Xprinters
file.
x
Printer attributes files that define the capabilities of the printer model. The name of the file is
typically all uppercase, and consists of the manufacturer and the model of printer. Examples of
file names are:
HPDJ1600C
,
IBM-4039-16l
, and
SUN-NP20
.