Added support for hidden apps (bug 1019249, 1019251)

yeah, not mine and I was meh on changing it