/usr/bin/ltsp-remoteapps 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 | #!/bin/sh
if [ "$1" = "--wait" ]; then
xprop -root -f LTSP_RCOMMAND_WAIT 8s -set LTSP_RCOMMAND_WAIT "true"
shift
fi
CMD=$1
shift
unset ARGS
for i in "$@"; do
i=$(echo $i|sed -e '/ /s/^/"/' -e '/ /s/$/"/')
ARGS="$ARGS $i"
done
xprop -root -f LTSP_RCOMMAND 8s -set LTSP_RCOMMAND "$CMD $ARGS"
|