This file is indexed.

/etc/X11/Xsession.d/40-ltsp-server is in ltsp-server 5.5.1-1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
3
4
5
6
7
8
if [ -n "$LTSP_CLIENT" ] && [ -z "$DESKTOP_SESSION" ]; then
    if ([ "$1" = "default" ] || [ -z "$1" ]) && [ "$(readlink /etc/alternatives/x-session-manager)" = "/usr/bin/gnome-session" ]; then
        DESKTOP_SESSION=ubuntu
    elif [ -n "$1" ]; then
        DESKTOP_SESSION=$(echo $1 | sed "s/gnome-session --session=//g")
    fi
    export DESKTOP_SESSION
fi