Bug 159001

Summary: custom wallpaper script don't work in kdesktop
Product: kdesktop Reporter: Roberto <r087r70>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: CLOSED WORKSFORME    
Severity: normal CC: finex
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Roberto 2008-03-09 11:15:26 UTC
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"
Comment 1 Roberto 2008-08-06 15:37:30 UTC
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
Comment 2 FiNeX 2009-01-02 20:35:03 UTC
Bug closed. Kdesktop is no more mantained.