Perelandra0x309 / einsteinium

Einsteinium for Haiku
2 stars 2 forks source link

The bootscript could clean up after itself #2

Closed humdingerb closed 7 years ago

humdingerb commented 7 years ago

Since Einsteinium is pretty much guaranteed to be used with package management, and since the EinsteiniumBootscript will be installed again automatically if the package was uninstalled and then re-installed, the notification when it can't find the Einsteinium daemon and engine isn't really useful, is it? I have uninstalled Einsteinium and am now greeted with two notifications on bootup. :)

Wouldn't it be more useful, it the EinsteiniumBootscript would delete itself if Einsteinium was uninstalled, i.e. the daemon and engine weren't found? Would be kinda neat, IMO.

Perelandra0x309 commented 7 years ago

@humdingerb Thank you for these suggestions. I am working on a minor update so will take these into consideration. Is there a way to query if a package is installed, maybe other than just checking the two packages directories?

humdingerb commented 7 years ago

You could query for our app's signature on the boot volume, which should work for your average enduser. Things my get difficult if a user figures out how to mount package locations outside of /boot (I don't know if/how that's possible), or if someone grabs the source and builds from there... To save looking in two locations, there's also /system/package-links which AFAIK is virtual folder gathering all mounted package loacations.

Perelandra0x309 commented 7 years ago

Added logic to bootscript to delete itsself if package not installed.