/usr/share/xscreensaver/xscreensaver-wrapper.sh is in xscreensaver 5.36-1.
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 | #!/bin/sh
if [ -n "$GDMSESSION" ]; then
case "$XDG_GREETER_DATA_DIR" in
*lightdm*)
which dm-tool > /dev/null && echo "XScreenSaver.newLoginCommand: dm-tool switch-to-greeter" | xrdb -merge
;;
*)
which gdmflexiserver > /dev/null && echo "XScreenSaver.newLoginCommand: gdmflexiserver -ls" | xrdb -merge
;;
esac
fi
if [ -n "$KDE_FULL_SESSION" ] && which kdmctl > /dev/null; then
echo "XScreenSaver.newLoginCommand: kdmctl reserve" | xrdb -merge
fi
exec xscreensaver "$@"
|