This file is indexed.

/usr/sbin/ltsp-remoteappsd is in ltsp-client-core 5.3.7-0ubuntu2.

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

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

if [ -z "$DISPLAY" ];then 
    exit 1
fi

# Initialize LTSP_RCOMMAND as blank
reset_xprop(){
    xprop -root -f $1 8s -set $1 ""
}

reset_xprop LTSP_RCOMMAND
reset_xprop LTSP_RCOMMAND_WAIT

# Poll for LTSP_RCOMMAND changes and execute
while :; do
    LTSP_RCOMMAND="$(xatomwait LTSP_RCOMMAND)"
    [ "$?" != 0 ] && exit 

    LTSP_RCOMMAND=$(echo "${LTSP_RCOMMAND}"|sed -e 's/^LTSP_RCOMMAND = //') 
    LTSP_RCOMMAND_WAIT=$(xprop -root -notype LTSP_RCOMMAND_WAIT |sed -e 's/^LTSP_RCOMMAND_WAIT = //' -e 's/^"//' -e 's/"$//')
    if [ -n "${LTSP_RCOMMAND}" ]; then
        if [ "$LTSP_RCOMMAND_WAIT" = "true" ]; then
            ssh -Y -t -S ${LDM_SOCKET} ${LDM_SERVER} "$CLIENT_ENV $MY_LANG $MY_DISP $MY_SCANNER $MY_SOUND ${LTSP_RCOMMAND}"
        else
            ssh -Y -t -S ${LDM_SOCKET} ${LDM_SERVER} "$CLIENT_ENV $MY_LANG $MY_DISP $MY_SCANNER $MY_SOUND ${LTSP_RCOMMAND}" & 
        fi
    fi
    reset_xprop LTSP_RCOMMAND
    reset_xprop LTSP_RCOMMAND_WAIT
done