/usr/share/xsessions is the new common way of storing X11 sessions. It is supported by most of the new DMs, and it would be great if our chooser.sh supported it as well -- so that xdm would support it too.
I can provide a patch if there is interest in that.
(In reply to Michał Górny from comment #0)
> I can provide a patch if there is interest in that.
Feel free to re'Cc x11@ if you write that patch.
Created attachment 677194 [details, diff]
Take care of files in /usr/share/xsession
Signed-off-by: Roberto Castagnola <firstname.lastname@example.org>
The patch also takes care of the case that XSESSION contains spaces (a command with arguments).
I made my best to write it in a posix complaint way, but since I'm not expert on this, some command may need a fix.