Same here, but they are too useful for me to do without. I have been using a script of mine to hide and show my desktop icons as I desire for several months. I leave the drive icons on all of the time. It works for me running a frugal Puppy 4.12 with icewm from EZpup 4.0. I run it from the Quick Launch in my taskbar. Use at your own risk. Is there an option to hide every desktop icon? I'm not a fan of them.
Code: Select all
#!/bin/bash
pin_file="/root/Choices/ROX-Filer/PuppyPin"
saved_file="/root/Choices/ROX-Filer/DO_NOT_DELETE"
temp_file="/root/Choices/ROX-Filer/PuppyPin2"
backdrop="</backdrop>"
pup_event=".pup_event"
close_tag="</pinboard>"
clear_pinboard ()
{
#read everything from the pinboard into the temp file except application icons.
read line; echo $line >>$temp_file
read line; echo $line >>$temp_file
while read line
do
if echo "$line" | grep -q "$backdrop"; then
echo "$line" >>$temp_file
fi
if echo "$line" | grep -q "$pup_event"; then
echo "$line" >>$temp_file
fi
if echo "$line" | grep -q "$close_tag"; then
echo "$line" >>$temp_file
fi
done
} < $saved_file
icons_restore ()
{
#read the file header and original saved icons into the temp file.
#skip the old .pup_event icons and pinboard closing tag.
while read line
do
if echo "$line" | grep -q "$pup_event"; then
continue
fi
if echo "$line" | grep -q "$close_tag"; then
continue
fi
echo "$line" >>$temp_file
done
} < $saved_file
drives_restore ()
{
#read the current .pup_event icons and pinboard closing tag from the pinboard into the temp file.
#skip everything else.
while read line
do
if echo "$line" | grep -q "$pup_event"; then
echo "$line" >>$temp_file
fi
if echo "$line" | grep -q "$close_tag"; then
echo "$line" >>$temp_file
fi
done
} < $pin_file
if [ -e $saved_file ]; then
icons_restore
drives_restore
rm -f $pin_file
sync
cp $temp_file $pin_file
rm -f $saved_file
rm -f $temp_file
sync
rox -p /root/Choices/ROX-Filer/PuppyPin
else
if [ -e $temp_file ]; then
rm -f $temp_file
sync
fi
touch $temp_file
sync
cp $pin_file $saved_file
clear_pinboard
sync
cp $temp_file $pin_file
sync
rm -f $temp_file
rox -p /root/Choices/ROX-Filer/PuppyPin
fi
exit 0