File: ltsp-localapps

package info (click to toggle)
ltsp 5.5.4-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,440 kB
  • ctags: 359
  • sloc: sh: 5,106; ansic: 1,590; perl: 280; python: 197; makefile: 171; lex: 152; yacc: 59
file content (17 lines) | stat: -rwxr-xr-x 306 bytes parent folder | download | duplicates (3)
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_COMMAND_WAIT 8s -set LTSP_COMMAND_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_COMMAND 8s -set LTSP_COMMAND "$CMD $ARGS"