summaryrefslogtreecommitdiffstats
path: root/tdescreensaver/krootbacking/xscreensaver-getimage
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:16:15 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:16:15 -0600
commit7e09b5c2efae58399621a938de26b9675b8ba621 (patch)
treede2c9535e1f4c48ae91910492d298eba1d593fd5 /tdescreensaver/krootbacking/xscreensaver-getimage
parent159f7e147ac33c924b3ce9050c8f03cbc54916ee (diff)
downloadtdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.tar.gz
tdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdescreensaver/krootbacking/xscreensaver-getimage')
-rw-r--r--tdescreensaver/krootbacking/xscreensaver-getimage9
1 files changed, 9 insertions, 0 deletions
diff --git a/tdescreensaver/krootbacking/xscreensaver-getimage b/tdescreensaver/krootbacking/xscreensaver-getimage
new file mode 100644
index 00000000..4745ac1b
--- /dev/null
+++ b/tdescreensaver/krootbacking/xscreensaver-getimage
@@ -0,0 +1,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