Files in /usr/share/xsessions are used by some display managers (e.g., LightDM and GDM) to detect available sessions. Such a file has been shipped in the Debian Window Maker package for years.