Set seat id and virtual terminal number on the session process.
Set DESKTOP_SESSION env variable.
Clean up.