Maybe this help: https://github.com/linuxmint/mdm/search?l=c&q=Cinnamon&type=Code&utf8=%E2%9C%93
test_exec = find_prog ("cinnamon-session");
cinnamon-session instead gnome-session ?
The gnome-session program starts up the GNOME desktop environment. This command is typically executed by your login manager (either gdm, xdm, or from your X startup scripts).
Maybe this help: https:/ /github. com/linuxmint/ mdm/search? l=c&q=Cinnamon& type=Code& utf8=%E2% 9C%93
test_exec = find_prog ("cinnamon- session" );
cinnamon-session instead gnome-session ?
The gnome-session program starts up the GNOME desktop environment. This
command is typically executed by your login manager (either gdm, xdm,
or from your X startup scripts).