Running Ubuntu 16.10

Something is setting XDG_CURRENT_DESKTOP to GNOME, and it's messing up my unity-control-center. If I run bash -x it's not being set in the output, but can still be seen by running env.

In my $HOME/.xsession-errors I see it being set to Unity, but something later must be overriding it.

How do I go about debugging this to find the culprit?

  • Still investigating myself, but now also see that I am missing DESKTOP_SESSION in the environment, and as a result gnome-session is being started with --session=<blank> – twk3 Dec 10 '16 at 7:30

Finally figured it out. There was a syntax error in an export in my $HOME/.profile (a multiline value) which for some reason now causes all set-env from gnome-session to fail. Once the bad export was removed, everything works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.