Debian and Ubuntu fiddle around with the XDG environment variables (like $XDG_DATA_DIRS and $XDG_CONFIG_DIRS) in /etc/X11/Xsession.d. Since we don't run the scripts in there, we will not get the same environment as a local login. This could potentially cause issues as applications and configuration stored in those extra XDG directories will be ignored. Ubuntu is also extra annoying by looking at $DESKTOP_SESSION, which is something magical that is set by lightdm.