Bug 159001 - custom wallpaper script don't work in kdesktop
Summary: custom wallpaper script don't work in kdesktop
Status: CLOSED WORKSFORME
Alias: None
Product: kdesktop
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-09 11:15 UTC by Roberto
Modified: 2009-01-02 20:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.