if boolean_is_true "$LTSP_FATCLIENT" &&
    ! boolean_is_true "$LDM_PASSWORD_HASH" &&
    [ -f /usr/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml ] &&
    [ -x /usr/bin/glib-compile-schemas ]; then
    cat >> /usr/share/glib-2.0/schemas/10_ltsp.gschema.override <<EOF
[org.gnome.desktop.lockdown]
disable-user-switching=true
disable-lock-screen=true
EOF
    glib-compile-schemas /usr/share/glib-2.0/schemas
fi
