Which program manages the GUI for logging in (including picking a desktop environment)? Where and when is the $PATH environment variable set?

Increase your chances of solving your issue: