Xfce XDM fails to start XFCE4

Hi FreeBSD Community,

I installed FreeBSD 13.0-RELEASE-p1 with xfce DE and xdm as a login manager. When I enter my credentials it blinks "successful" but then fails.
I followed this Sec 5.7.3 and I was only able to start xfce DE from ttyX by typing
Code:
startx
. This should be good enough for now but I am just wonder if this issue can be fixed?
Thanks!

PS: I just check /var/log/xdm.log (see below)

Screenshot_2021-06-19_09-50-53.png



Screenshot_2021-06-19_12-02-46.png
 
~/.xsession-errors reports it
can not open /usr/local/etc/xdg/xfce4/xinitrc: No such file or directory

but the file exists:

1624119543629.png
 
As far I can read XDM doesn't fail - and does its job completely. But there seems to be no user session defined, and so you're getting back to the login screen. Just create a file ~/.xsession, and write in there the start command(s) of your desktop; In case of Xfce that might be /usr/local/bin/startxfce4.

Take a look into the directory /usr/local/etc/X11/xdm/ to get more information about how XDM raises a user session - it is done by simple script files. Also read man xdm.
 
That sounds really good. I completely forgot about ~/.xinitrc. LightDM handles that situation well.
You can also use startxfce4 as described in this guide (applied to XDM/.xsession).
Try:
Code:
echo "exec /usr/local/bin/startxfce4 --with-ck-launch" > ~/.xsession
chmod 700 ~/.xsession
 
Thanks so much guys! It works fine now after I updated ~/.xsession with ". /usr/local/bin/startxfce4"

Initially I just followed the manual:

1624289401709.png
 
Back
Top