Add pinned attribute to apps. Fixes #56890233