LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File xsetbgimg of Package xv.4872 (Project DISCONTINUED:openSUSE:11.3:Update)

#!/bin/sh
# Set X background using supplied image
# Author: Christian Steinruecken <cstein@suse.de>
self=`basename $0`
if [ -z "$1" -o "$1" = "--help" -o "$1" = "-h" ]; then
  echo "Usage: `basename $0` [image file]" >&1
  echo "   Set the X background using the specified image. By default,"
  echo "   the picture will be scaled to the full screen size."
  echo "   (This program is only a small wrapper for 'xv'. Please see"
  echo "   the xv manual page for details)"
else
  for i in "$@"; do
    case "$i" in
    -*) ;;
    *) if [ ! -r "$i" ]; then
         echo "$self: Unable to open image file '$i'." >&2
	 exit 1
       fi
       ;;
    esac
  done
  xv -max -quit -root -wait 0 $@
fi