Added support for starting apps in non portrait mode.