I've been looking at packages that need to modify the X session in order to work. Here are a few examples: xbanner (needs to add itself to XSetup_0 and clean up after itself in in Xsession) xfstt (needs to add itself to font path in Xsession) openssh (it would be useful if it could coerce the display manager to run the Xsession through ssh-agent) I'm in the process of making a package similar to one of these. At the moment (well, ok, as of a few hours ago ;-) xbanner implements its startup scripts by doing open-heart surgery on the /etc/X11/Xsession file (or whatever is listed in xdm-config), and openssh has direct support for ssh-agent provided by Xsession.options. xfstt seems to require that the user set it up for herself. I'd like to have a mechanism where programs like xfstt and xbanner (as well as hypothetical packages that e.g. display site-specific messages upon login) can configure themselves to be executed at various points in Xsetup_0 and Xsession. One possible structure looks like this: /etc/X11/scripts.d analogous to /etc/init.d /etc/X11/Xsession.d analogous to /etc/rc2.d executed as part of Xsession /etc/X11/Xsetup_0.d ditto, for Xsetup_0 /etc/X11/Xsetup.d ditto, for Xsetup These would be maintained with something called update-x11-scripts.d, which would be a modified form of update-rc.d. To ease integration with Debian I'd put the maintenance script in a separate package that packages which use the maintenance script can depend on. All scripts would be called with the operation being requested (e.g. 'setup' or 'session') in a manner similar to the way that /etc/init.d scripts are called with 'start' and 'stop'. Any comments? Does anyone see a need for supporting hooks in the other XDM files such as Xstartup* and Xreset? -- I don't speak for Corel. zygob@corel.ca at work, zblaxell@furryterror.org at play. GPG-encrypted email preferred at zblaxell@feedme.hungrycats.org GPG @ Home fingerprint: 2B32 546D 21A5 0DB2 20C8 AF10 1D4A 610E 6972 2DEE GPG @ Work fingerprint: CC25 D214 1B4B 2767 51B9 51E5 58DD 13B9 875B C08E
Attachment:
pgpdVgdZdFEgj.pgp
Description: PGP signature