This reminds me that I changed the behaviour of this little thing some time ago because it drove me nuts. The 2 main problems:
1) When leftclicking the icon it pops up "partview", a tiny application that has little if any relation to free personal storage. Basically it shows only free hard disk space. Some may find this useful, I don't.
One of the most frequent questions in the forum is "What is eating my pupsave space?". The icon alerts to low personal storage, but a leftclick gives no answer.
2) What really annoyed me was that "partview" scans even unmounted partitions. I run Puppy from a USB stick. My harddisk is old, noisy and contains 2 Windows partitions. I don't need it and spin it down when I start Puppy. But when I accidentally clicked the freemem icon, my HD would slowly come back to life with a rattling noise. Then partview pops up and happily tells me that I have 84GB left on my Windows partition...grhhh...I know that! And I don't care!
Fortunately this is easy to fix:
1) Go to /usr/sbin/partview and rename partview to something else - or delete it (it remains part of the main sfs and can still be run from /initrd/pup_ro2/usr/sbin/partview)
2) Create a new script /usr/sbin/partview. Leftclicking the freemem icon will call this script. What's in the script depends on the user's needs. One of the most simple, but still useful scripts I can think of:
Code: Select all
#!/bin/sh
gdmap -f /initrd/pup_rw
My own creation "Disk & RAM usage" is an old fashioned console window and less colorful, but that's the way I like it and I'm happy with it.
Gdmap is not my favorite, but it's included in many Puppies. TreeSize is too terse for me. As a good compromise between these 2 extremes I still like and use xdiskusage, but this thing seems to be abandonware. Better ideas always welcome!