[7601] in SIPB bug reports
A quick thought on a screen locker wrapper script
daemon@ATHENA.MIT.EDU (David Z Maze)
Fri Jun 16 13:19:28 2000
To: bug-sipb@MIT.EDU
From: David Z Maze <dmaze@MIT.EDU>
Date: 16 Jun 2000 13:19:24 -0400
Message-ID: <y68snudwnkz.fsf@indiana.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
In stock jwz xscreensaver, xscreensaver-command(1) can be used to
determine whether a screensaver is running. Thus, it might make sense
to write a generic wrapper script for SIPB xscreensaver, xlockmore,
etc. that looks vaguely like the following (untested):
#!/bin/sh
if xscreensaver-command -version >/dev/null 2>&1
then
cat <<EOF
Athena, by default, runs jwz xscreensaver, which causes bad nasty
things to happen when you run other screensavers with it. You can
disable it by adding 'set skip_xss' in your .environment file, logging
out, and logging in again. You can also stop the screensaver now by
running 'xscreensaver-command -exit', though this will not stop it
from starting when you next log in.
EOF
else
exec $0.real
fi
--
David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/
"Theoretical politics is interesting. Politicking should be illegal."
-- Abra Mitchell