You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeartwork/kscreensaver/krootbacking/xscreensaver-getimage

10 lines
290 B

#!/bin/bash
# Yes, this is quite fragile
# Yes, it should be fixed
# But for this non-critical function it should be good enough...
REAL_BINARY=$(whereis -b xscreensaver-getimage | awk '{print $2}')
if [[ "$0" != "$REAL_BINARY" ]]; then
$REAL_BINARY -no-video -no-desktop -images "$@"
fi