Set default user session to XFCE4

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.


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


It works with xfce4-session.

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