[comp.windows.x] xsetroot in xdm?

stevens@paris.hep.anl.gov (Andy Stevens) (07/31/90)

Does anybody know how to set a bitmap during the authentication part of
xdm?  i.e. I want to xsetroot a bitmap when the display says 
"Welcome to the X window system".

Thanks,

--andy s.

pive@BANRUC01.BITNET (07/31/90)

Excerpts from X: 30-Jul-90 xsetroot in xdm? (188)

> Does anybody know how to set a bitmap during the authentication part of
> xdm?  i.e. I want to xsetroot a bitmap when the display says
> "Welcome to the X window system".

> Thanks,

> --andy s.



Try to put the next command in the file /usr/lib/X11/xdm/Xreset:
	xsetroot -bitmap "filename"
each time you logout, xdm executes the file Xreset.....




P. Verhaeghe
University of Antwerp, RUCA
Algebra / Geometry
Groenenborgerlaan 171
B-2020 Antwerpen, Belgium

Tel: +32 3 2180308
Fax: +32 3 2180217
Telex: RUCABI 33362

E-mail: pive@banruc01.bitnet (or pive@ccu.uia.ac.be)

victoria@sbi.UUCP (Victoria Drozdov) (08/02/90)

In article <0ahI2TxY0005MEEFA4@rucageo>, pive@BANRUC01.BITNET writes:
> 
> Try to put the next command in the file /usr/lib/X11/xdm/Xreset:
> 	xsetroot -bitmap "filename"
> each time you logout, xdm executes the file Xreset.....
> 
> 
> P. Verhaeghe
> E-mail: pive@banruc01.bitnet (or pive@ccu.uia.ac.be)

I have tried this before, but there was no result. Is there
any other way to change the background inbetween the xdm
sessions? (I did find another way, by making the border width
of the xdm login window very large. But this only solves the
problem of a solid background. How about bitmas?)

keith@EXPO.LCS.MIT.EDU (Keith Packard) (08/02/90)

> > 
> > 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

adams@trim.intel.com (Robert Adams) (08/08/90)

 %*`PBmEV|8\|1h_g?<g\0H[_TMcjqun0r^qV~F10Q\l_ByzPK?E"yZote{o8A0RRdGn]%QLG`Y[>|9
 T9z?EPW,lQV3p}7Xv[6jV(q,ghd).M(ul7|cJjcf6;`6K:;hgv]9=6v&>3Y=>h3"23x("uHz4_&\75
 J`aE[zoT,Y9?B~GrZwQM72M#'-~MSTD-hP?P~a-/"o|"W2"<.'F9+yIOJm=!O4=:K`=SBUs9Z9?

In article <1990Jul30.205143.1978@mcs.anl.gov>,
stevens@paris.hep.anl.gov (Andy Stevens) writes:
> Does anybody know how to set a bitmap during the authentication part of
> xdm?  i.e. I want to xsetroot a bitmap when the display says 
> "Welcome to the X window system".
> 
My fix for this was to modify the X11R3 xdm to run the script Xsetup around
the time that the login widget was being displayed.  That is, in the
routine ManageSession, it loads the resource database and exec's
a shell to run 'Xsetup'.  After the greet widget exits, the login
resources are unloaded and all of the children of the exec'ed shell
are killed.  The normal session processing is done thereafter.

This not only allows setting of the root background when the greeting
widget is displayed, but it also allows the running of "safe" clients on the
login screen - a clock or mailbox status display.

        -- Robert Adams         adams@littlei.intel.com
                                ...!uunet!littlei!adams