In article <1143041155.370689.304160@j33g2000cwa.googlegroups. com>,
NUPUL wrote:
>I wish to write a program that set's the desktop background to the
>desired JPEG/PNG etc file....Is there a way to do this in X?
>
>xsetroot just sets the bg to the specified color combination....any
>refinement possible?


Sure. You need to use something other than xsetroot to set
a background image. Just about any image viewing program will
do. For example, if you have xv, you would do:

xv -root -max -q imagefilename

If you have feh, you would do:

feh --bg-scale imagefilename

If you have some other image viewing program, read its documentation.

--
Rouben Rostamian