if you have gdm and xfce4 installed, gdm offers xfce out of the box.
The package xfce4-session provides the magic file that make it work in
/usr/local/share/xsessions/xfce.desktop
Index: Makefile
===================================================================
RCS file: /home/cvs/ports/meta/xfce/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- Makefile 16 Apr 2023 18:29:39 -0000 1.30
+++ Makefile 7 May 2023 15:31:25 -0000
@@ -7,7 +7,7 @@
PKGNAME-main = xfce-${V}
PKGNAME-extras = xfce-extras-${V}
REVISION-extras = 3
-REVISION-main = 3
+REVISION-main = 4
MAINTAINER = Landry Breuil <[email protected]>
Index: pkg/README-main
===================================================================
RCS file: /home/cvs/ports/meta/xfce/pkg/README-main,v
retrieving revision 1.20
diff -u -r1.20 README-main
--- pkg/README-main 24 Dec 2022 20:49:58 -0000 1.20
+++ pkg/README-main 7 May 2023 15:31:20 -0000
@@ -12,9 +12,6 @@
Simply add '${LOCALBASE}/bin/startxfce4' to your .xinitrc .xsession
script if you use startx(1) or xenodm(1), respectively.
-If you use gdm, have a look at https://wiki.xfce.org/faq#starting_xfce
-which provides an xfce4.desktop for it.
-
Logging out and shutting down the computer
==========================================
If your installation supports complete shutdown, clicking on the logout