summaryrefslogtreecommitdiffstats
path: root/tdescreensaver/krootbacking/xscreensaver-getimage
blob: 4745ac1b6c5de9e748c8f1cde4709b2f56acc1db (plain)
1
2
3
4
5
6
7
8
9
#!/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