Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!keith From: keith@EXPO.LCS.MIT.EDU (Keith Packard) Newsgroups: comp.windows.x Subject: Re: xsetroot in xdm? Message-ID: <9008021447.AA25710@xenon.lcs.mit.edu> Date: 2 Aug 90 14:47:38 GMT References: <378@sbi.UUCP> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 27 > > > > Try to put the next command in the file /usr/lib/X11/xdm/Xreset: > > xsetroot -bitmap "filename" > > I have tried this before, but there was no result. Is there > any other way to change the background inbetween the xdm > sessions? The only place you can put xsetroot and get it to work is inside a shell script which runs as a replacement for xrdb (the name of which is configurable inside xdm-config). You'll need to extract the display name from the argument list passed to xrdb (fixed in next release). Here's an example: (/usr/lib/X11/xdm/xrdb+xsetroot) #!/bin/sh /usr/bin/X11/xrdb "$@" /usr/bin/X11/xsetroot -display $2 -bitmap /usr/include/X11/bitmaps/escherknot exit 0 (add to /usr/lib/X11/xdm/xdm-config) DisplayManager*xrdb: /usr/lib/X11/xdm/xrdb+xsetroot No, I haven't tested this exact script, but I have run similar scripts quite successfully. Keith Packard MIT X Consortium