Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!uunet!fub!opal!unido!fauern!tumuc!newsserv.informatik.tu-muenchen.de!Informatik.TU-Muenchen.DE!stumpf From: stumpf@Informatik.TU-Muenchen.DE (Markus Stumpf) Newsgroups: comp.windows.x,visix.news.xcons.xpert Subject: Re: xdm root window Message-ID: <1991Jan28.123135@Informatik.TU-Muenchen.DE> Date: 28 Jan 91 11:31:35 GMT References: <1991Jan26.001505.29420@dsd.es.com> Sender: news@newsserv.informatik.tu-muenchen.de Reply-To: stumpf@Informatik.TU-Muenchen.DE (Markus Stumpf) Organization: Technische Universitaet Muenchen, West Germany Lines: 48 In article <1991Jan26.001505.29420@dsd.es.com>, rthomson@mesa.dsd.es.com (Rich Thomson) writes: |> It really needs to be added as an (oh no! ;-) extra resource to xdm -- |> it should be a program to execute after the connection to the server |> has been made (so the server won't reset) for the login box. I heard |> a rumor about some such resource in xdm at MIPS, but it isn't in the |> generic MIT code. I've thought about putting in this code (it |> shouldn't be that hard), but is has some potential problems: what if |> the command fails or never returns? I guess this isn't too much of a |> problem because the resources aren't set by users, but by the |> sysadmin. |> |> If anybody has a patch to the MIT xdm that does this, I'd like to have |> a copy ;-}. You don't need a patch! It's already there, even if it's kind of a _hack_: If used the following to display xmas-bitmaps: (of course you have to be root/have write acces to the files/directories) in /usr/lib/X11/xdm (default directory for xdm configs) change/add the line in xdm-config: DisplayManager*xrdb: /usr/lib/X11/xdm/xrdb+xsetroot make the file /usr/lib/X11/xdm/xrdb+xsetroot to look like e.g.: #!/bin/sh # # load the resources and change the root-window background pixmap # /usr/bin/X11/xrdb "$@" echo "setting root background" >> /usr/lib/X11/xdm-errors /usr/bin/X11/xsetroot -display $2 -bitmap /usr/wiss/stumpf/bitmaps/xmastree.xbm exit 0 To really get it to work, you have to kill all xdms and restart xdm! \Maex -- +- Markus Stumpf Technische Universitaet Muenchen -+ | Institut fuer Informatik, Rechnerbetriebsgruppe | | stumpf@informatik.tu-muenchen.de Postfach 202420 | +- ...@{unido.uucp,relay.cs.net} D-8000 Muenchen 2, West Germany -+