[Bug 159001] New: custom wallpaper script don't work in kdesktop
rob
figjina at libero.it
Sun Mar 9 10:15:27 GMT 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=159001
Summary: custom wallpaper script don't work in kdesktop
Product: kdesktop
Version: unspecified
Platform: Debian testing
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: unassigned-bugs kde org
ReportedBy: figjina libero it
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"
More information about the Unassigned-bugs
mailing list