I use Puppy 4.2.1 and installed wallpaper_setter-01-3.pet a while ago and as far as I recall all was working fine.
Today I wanted to change my wallpaper and used the wallpaper changer. As usual the widgets restarted (I think fixwidgets -wallpaper_setter is called) but the wallpaper was not modified, even after restarting X.
I tracked down all the scripts that are called when a wallpaper is changed and finally found the script that is not executing properly:
set_bg spits the following error out:
Code: Select all
-:1: parser error : Document is empty
^
-:1: parser error : Start tag expected, '<' not found
^
** ERROR **: Invalid XML in RPC
aborting...
The current content of this script is:
Code: Select all
#!/bin/sh
#2009-02-25 - zigbert
#removed fixwidgets from here. Moved to AppRun.
#2009-01-05 - hairywill
#updated -clear function to avoid loading an empty pinboard,
#now it just sets the background as grey
#changed default mode to Stretch
#added call to fixwidgets to refresh pwidget display
# Determine the path to this application.
CURDIR="`pwd`"
APPDIR=`dirname "$0"`
cd "${APPDIR}"
APPDIR="`pwd`"
cd "${CURDIR}"
IMAGE="$1"
if [ "$1" = "-clear" ];then
IMAGE=""
fi
MODE="`cat $HOME/.config/wallpaper/backgroundmode`"
[ "$MODE" = "" ] && MODE="Stretch"
[ "$MODE" = "Centred" ] && MODE="Centre"
[ "$MODE" = "Scaled" ] && MODE="Scale"
rox --RPC << EOF
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope">
<env:Body xmlns="http://rox.sourceforge.net/SOAP/ROX-Filer">
<SetBackdrop>
<Filename>$IMAGE</Filename>
<Style>$MODE</Style>
</SetBackdrop>
</env:Body>
</env:Envelope>
EOF
echo "$IMAGE" > $HOME/.config/wallpaper/bg_img
#xli -onroot -fillscreen "$IMAGE"
#[ "$(which fixwidgets)" ] && fixwidgets &
PS: I checked the content of Pwidgets_background, and there is indeed the correct "new" background picture in it.