Support for using getaddrinfo(), inet_ntop(), and struct sockaddr_storage was originally added to support IPv6, and only used if IPv6 support was enabled. Two decades later, these interfaces are ubiquitous and OS'es have starting marking the old interfaces as deprecated, so this release changes to use the modern interface whenever we can now. (Note that code included from xtrans will only use these interfaces when IPv6 is disabled if building against xtrans 1.6.0 or later.) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xdm?expand=0&rev=286
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
Display Manager Scriptlets HOWTO
|
|
================================
|
|
|
|
To keep display manager specific code out of the generic
|
|
start script (/etc/init.d/xdm) as much as possible display
|
|
managers should provide a script file that provides anything
|
|
specific to this dm.
|
|
|
|
At minimum the script file needs to provide:
|
|
here <DM> denotes the name of the file. This should
|
|
be the same as the pid file generated by the display
|
|
manager - without the .pid extent.
|
|
|
|
# this function matches the command line argument. If it
|
|
finds a match it initializes any dm specific variables
|
|
and returns 0 (success) otherwise it returns 1 (fail).
|
|
At minimum it needs to set the full path the the display
|
|
manager binary.
|
|
It may set STARTPROC to a function that gets run prior to
|
|
starting a dm, RELOADPROC to a function that's run to reload
|
|
the DM configuration, PROBEPROC to a function that's run
|
|
when the DM status is probed.
|
|
Any those functions should return 0 on success or any other
|
|
value on failure.
|
|
Additionally it may initialize any other variables needed
|
|
by the DM.
|
|
|
|
<DM>_vars() {
|
|
case $1 in
|
|
<thisdm>)
|
|
DISPLAYMANAGER=/usr/bin/<thisdm>
|
|
STARTPROC=<DM>_start # optional
|
|
RELOADPROC=<DM>_reload # optional
|
|
PROBEPROC=<DM>_probe # optional
|
|
....
|
|
}
|