This futzes with some links under /etc/alternatives and ends up pointing the x-window-manager links to somewhere else. Read the man page.