Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: X Background Diversions?



>>>>> "Rainer" == Rainer Mager <rvm@example.com> writes:

    Rainer> Anyway, "xv -root -quit filename" works fine.

Thanks, Rainer!  xv also supports various options to tile or center
the picture, or both, and you can use it to magnify and reduce pix to
the form factor or aspect ratio of your pic.  I don't know how many of 
those options are available from the comman line, though.

    Rainer> As for trying to redirect a
    Rainer> different programs display to the root window I'm pretty
    Rainer> sure that's impossible if it wasn't supported when coded.

Bzzt.  I don't know a program that does this, but I know how to do it:
put it in a window, xd that window, xud that pixmap to root, kill the
original window.  If you must do it in real time (anime, ne), you can
write a program to steal the X protocol directed to that program's
window and display it somewhere else (this a generalization of
"reparenting", which all user-level (ie, X) window managers do).
There are general-purpose programs for doing that so that several
users can share the output of one program on different displays (HP
developed a good one, it's in the contrib distribution), but I don't
know if any of them support display to root.

At 09:49 AM 5/22/96 +0900, "jwt" == Jim Tittsler wrote:

    jwt> 2. How do I put a picture in the root window behind the login 
    jwt> prompt (of xdm?)?

xdm offers the ability to run a startup program, usually login(1).  I
think that for security reasons it's not allowed to be a script (or
maybe it's not allowed to have arguments in the call?), but there's no
reason it can't be

main () {
    system("xv -root -quit bill_gates.jpeg");
    exec("/sbin/login");
}

or something like that.  (I'm not sure what the appropriate versions
of the system functions for this purpose would be.  Never wrote such a
thing....)  See xdm(1) for its discussion of the startup program.  Or
maybe you want the reinitialization program for xdm.  I believe there
was some discussion of changing the background for xdm there, or the
login method, or something....

-- 
                           Stephen John Turnbull
University of Tsukuba                                        Yaseppochi-Gumi
Institute of Policy and Planning Sciences  http://turnbull.sk.tsukuba.ac.jp/
Tennodai 1-1-1, Tsukuba, 305 JAPAN                 turnbull@example.com


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links