In article <1143041155.370689.304160@j33g2000cwa.googlegroups.com>,
NUPUL <nupul.kukreja@gmail.com> wrote:[color=blue]
>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?[/color]

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: