home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / clients / xdm / design < prev    next >
Encoding:
Internet Message Format  |  1990-12-13  |  1.8 KB

  1. To: treese@athena.mit.edu
  2. Subject: xlogin
  3. --------
  4.  
  5. Design discussion concerning an Xlogin program.
  6.  
  7.     Xlogin can't use either the vanilla init ttys file, nor the magic
  8. 4.3 ttys file -- each of these is based on the notion of one tty per
  9. login-session.  This 'tty' notion permeates init, so I don't think we can
  10. easily ask people to change it.
  11.  
  12.     Xlogin will (then) need to be yet-another-daemon which keeps a
  13. session running on the display.  It will probably be started from /etc/rc.
  14. An alternative position would have Xlogin started from /etc/ttys, by
  15. assigning an unused pty to be dedicated for this purpose, and having Xlogin
  16. disable it (by keeping the master half open).
  17.  
  18.     In either case, Xlogin will start up the server and present a simple
  19. dialog box in the center of an otherwise blank screen, prompting for
  20. login/password.  After verification, it will (optionally) execute a shell
  21. script ("/etc/Xrc") (as root) and then switch user-id's and execute a shell
  22. script in the home-directory of the user (".Xrc").  On termination of that
  23. shell script, (or of the X server) Xlogin will reinitialize the server and
  24. start over.
  25.  
  26. I expect the .Xrc file to look something like:
  27.  
  28.     #
  29.     # sample .Xrc file
  30.     #
  31.     xclock &
  32.     xload &
  33.     xterm &
  34.     twm
  35.  
  36. As the final line causes the script to terminate exactly when twm
  37. terminates, this uses the window manager as a session manager.
  38.  
  39.     If no .Xrc file exists, Xlogin will start xterm.
  40.  
  41. The various parameters for Xlogin will be resources on the root window,
  42. loaded by Xlogin each time it starts the server from /etc/Xdb (or some other
  43. more imaginative file-name).  This is an attempt to make it a bit more
  44. customizable without having source access.
  45.  
  46. Files involved:
  47.  
  48.     /etc/Xlogin        - init/getty/login combo for X
  49.     /etc/Xdb        - initial display resources
  50.     /etc/Xrc        - startup commands
  51.  
  52.     ~/.Xrc            - per-user session script
  53.  
  54.