Otherwise launching firefox, which in turn leads to launching of xdg-desktop-portal-kde, disables auto-rotation.