Occasionally (very rarely) I have to use Skype. But since I run SliTaz from a customized Live CD entirely in RAM I do not want to waste space on a large application that I hardly ever use. So, I keep a pre-configured and compressed version of Skype (static) on a very slow 1GB HDD. When I click on the Skype icon a short script (see below) takes care of the de-compression and the start of Skype. So far so good. But it seems impossible to get rid of Skype in my home directory automatically when I exit the program as none of the (experimental) commands at the bottom of the script is ever executed. Does anyone know the reason for this and what can be done about it?
And then there's another issue: When I exit Skype and then manually delete the Skype folder in my home directory, one would expect that clicking the Skype icon again would mean another 14 seconds delay for the de-compression and the start of Skype. But this isn't so. There's no HDD activity and the Skype login-window comes up almost immediately. Not even clearing the caches with ...
sync; echo 3 > /proc/sys/vm/drop_caches
... prevents this from happening and I'm wondering where in the RAM Skype has been hiding? Creepy, to say the least. It seems the oly safe method to get rid of Skype is to re-boot the computer ...
#!/bin/sh
#
if [ "$(pidof skype)" ]; then
exit 1
fi
if [ "$(whoami)" != "tux" ]; then
echo "Only 'tux' may use Skype."
echo ""
exit 1
fi
if [ ! -d /home/tux/.Skype ]; then
if [ ! -f /media/seagate/.copy/run/skype/skype.tar.gz ]; then
exit 1
fi
desktopbox notify "Copying Skype ..." 14 &
tar -xvzf /media/seagate/.copy/run/skype/skype.tar.gz -C /home/tux
fi
exec /home/tux/.Skype/skype
killall -q skype
rm -fr /home/tux/.Skype
sync; echo 3 > /proc/sys/vm/drop_caches
exit 0