Version: (using KDE 3.5.9) Installed from: Debian testing/unstable Packages The following mywall.sh script works fine from konsole. It creates a random image with a gradient background, suitable for the desktop size. If I use it in kdesktop configuration with mywall.sh %x %y %f , it doesn't work and the desktop becomes a single color. I think that if it works in a terminal, it should also work in kdesktop. Here's the script: #!/bin/bash WALLDIR=/path/to/wallpapers XSIZE="$1" ; YSIZE="$2" FILE=`find "$WALLDIR" -iname '*.jpg' ; find "$WALLDIR" -iname '*.png'` FILE=`echo "$FILE" | sort -R | head -1` if [ -z "$FILE" ] ; then exit 1 ; fi echo "Converting $FILE" convert -size "${XSIZE}"x"${YSIZE}" gradient:firebrick-gold -gravity center \ \( "$FILE" -resize `expr ${XSIZE} - 40`x`expr ${YSIZE} - 60`'>' \) \ -composite -flatten -quality 100 "$3"
Solved by replacing the last line with : -composite -flatten -quality 100 /tmp/wallpaper.jpg ; convert /tmp/wallpaper.jpg "$3" I released this script at: http://www.kde-look.org/content/show.php/mysfondo?content=85529
Bug closed. Kdesktop is no more mantained.