May be worth being considerate to people who want to use the package in Unleashed, and craft the pinstall.sh script so that it only brings up windows and stuff if it's being installed as a package, not during Unleashed.Quite right - window manager .pets should pop up a window telling you what to do.
Easy enough to do. If it's being installed as a package, pwd will return'/' because PETget runs them at /. If it's being run from Unleashed, it will return the path to puppy-unleashed/rootfs-complete/.
So do something like this:
Code: Select all
if [ "$(pwd)" = "/" ]; then
Xdialog --msgbox "Yo. Go do stuff." 0 0
fi
As for batteries, JWM does it fine. I don't know where exactly the decision to show or not show it happens - never wondered about it before. If the applet itself doesn't handle that, then you could just look in /proc/acpi/battery/. If it's empty, then either there is no battery, the battery module isn't loaded (then there would be no /proc/acpi/battery directory either), or the battery doesn't use acpi.