Public bug reported: In /etc/X11/Xsession.d/70gconfd_path-on-session these lines fail if there is a space in ${DESKTOP_SESSION}:
export MANDATORY_PATH=${GCONF_PREFIX}/${DESKTOP_SESSION}.mandatory.path export DEFAULTS_PATH=${GCONF_PREFIX}/${DESKTOP_SESSION}.default.path The error output to ~/.xsession-errors is: /etc/X11/Xsession: 6: export: Session.mandatory.path: bad variable name I'm not sure why the error is pointing to the wrong file. Adding quotes around the variables in those lines makes the error go away. This error totally prevents logging into X. It happens when using LXDM to start Xfce, because LXDM sets DESKTOP_SESSION to Name from /usr/share/xsessions/xfce.desktop : Name=Xfce Session These LXDM bugs relate to the problem, but I guess the lack of quoting here is the root cause. I'm not sure if setting DESKTOP_SESSION to the Name from the .desktop file and having a space in it is wise, but everything seems to work after fixing the quoting. Proper quoting is used elsewhere. https://sourceforge.net/p/lxde/bugs/420/ https://bugs.launchpad.net/ubuntu/+source/lxdm/+bug/875991 ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: gconf2-common 3.2.6-3ubuntu6 ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8 Uname: Linux 4.4.0-22-generic x86_64 NonfreeKernelModules: nvidia_uvm nvidia ApportVersion: 2.20.1-0ubuntu2.1 Architecture: amd64 CurrentDesktop: XFCE Date: Thu Jun 2 10:16:46 2016 PackageArchitecture: all ProcEnviron: LANGUAGE=en_CA:en TERM=xterm PATH=(custom, no user) LANG=en_CA.UTF-8 SHELL=/bin/bash SourcePackage: gconf UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: gconf (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug xenial -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gconf in Ubuntu. https://bugs.launchpad.net/bugs/1588395 Title: 70gconfd_path-on-session doesn't quote DESKTOP_SESSION and fails if it contains a space To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gconf/+bug/1588395/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs