/usr/bin/ssr-glinject is in simplescreenrecorder 0.3.8-3.
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | #!/bin/bash
set -e
usage() {
echo "Usage: ssr-glinject [OPTIONS] [--] COMMAND" >& 2
echo "" >& 2
echo "Options:" >& 2
echo " --help Show this help message." >& 2
echo " --glx-debug Enables GLX debugging. This may reduce the performance" >& 2
echo " and print lots of error messages, but it is useful to" >& 2
echo " track down bugs." >& 2
echo " --relax-permissions Uses mode 666 instead of 600 for shared memory, so that" >& 2
echo " other users can record the stream. This is insecure and" >& 2
echo " should not be used on a computer that can be accessed by" >& 2
echo " other users that you don't trust." >& 2
echo " --channel=CHANNEL Channel name to use. The default is 'channel-USERNAME'." >& 2
echo "" >& 2
echo "This script uses LD_PRELOAD to inject the GLInject library into the given" >& 2
echo "command, so that SimpleScreenRecorder can record it. It should be safe to use" >& 2
echo "this on all applications (including command-line programs and shell scripts)." >& 2
echo "If the program doesn't use OpenGL, it should have no effect. If you find a" >& 2
echo "program that crashes or behaves incorrectly when GLInject is used, please submit" >& 2
echo "a bug report." >& 2
}
export SSR_GLX_DEBUG=0
export SSR_STREAM_RELAX_PERMISSIONS=0
while [ $# -gt 0 ]
do
if [ x"$1" = x"--" ]
then
shift
break
elif [ x"$1" = x"--help" ]
then
usage
exit
elif [ x"$1" = x"--glx-debug" ]
then
export SSR_GLX_DEBUG=1
shift
elif [ x"$1" = x"--relax-permissions" ]
then
export SSR_STREAM_RELAX_PERMISSIONS=1
shift
elif [ x"${1:0:10}" = x"--channel=" ]
then
export SSR_CHANNEL="${1:10}"
shift
elif [ x"${1:0:1}" = x"-" ]
then
echo "ssr-glinject: Unknown option '$1'!" >& 2
usage
exit 1
else
break
fi
done
SSR_GLINJECT="/usr/lib/simplescreenrecorder/libssr-glinject.so"
echo "ssr-glinject: LD_PRELOAD = $LD_PRELOAD:$SSR_GLINJECT"
echo "ssr-glinject: command = $@"
LD_PRELOAD="$LD_PRELOAD:$SSR_GLINJECT" "$@"
|