Added support for hidden apps (bug 1019249, 1019251)

should be 2 spaces