Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I set the default user session to XFCE4?

I have tried:

sudo /usr/lib/lightdm/lightdm-set-defaults --session xfce

sudo /usr/lib/lightdm/lightdm-set-defaults --session xfce4

sudo /usr/lib/lightdm/lightdm-set-defaults --session xubuntu-desktop

I am using xRDP and do not have access to the normal greeter.

share|improve this question

2 Answers 2

I created file ~/.xsession with a one liner xfce4-session.

share|improve this answer

It works with xfce4-session.

sudo /usr/lib/lightdm/lightdm-set-defaults --session xfce4-session
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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