summaryrefslogtreecommitdiffstats
path: root/kscreensaver
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-19 22:30:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-19 22:30:06 +0000
commitd9432724802cad439f6296a8793d51415dd1c15f (patch)
treec7341a0ac182cac3431a86c748423ac3e19c4ee9 /kscreensaver
parent65c92df31bb4250d7ed72f588532489c5392c280 (diff)
downloadtdeartwork-d9432724802cad439f6296a8793d51415dd1c15f.tar.gz
tdeartwork-d9432724802cad439f6296a8793d51415dd1c15f.zip
Add interface for xscreensaver desktop distortions
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeartwork@1248138 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kscreensaver')
-rw-r--r--kscreensaver/krootbacking/Makefile.am3
-rw-r--r--kscreensaver/krootbacking/xscreensaver-getimage9
-rw-r--r--kscreensaver/krootbacking/xscreensaver-getimage-file3
3 files changed, 15 insertions, 0 deletions
diff --git a/kscreensaver/krootbacking/Makefile.am b/kscreensaver/krootbacking/Makefile.am
index ade1cc8f..2c5ab3bc 100644
--- a/kscreensaver/krootbacking/Makefile.am
+++ b/kscreensaver/krootbacking/Makefile.am
@@ -8,3 +8,6 @@ krootbacking_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module $(LIB_QT) $(LIB_KD
METASOURCES = AUTO
noinst_HEADERS = krootbacking.h
+
+hackdir = $(DESTDIR)/usr/local/bin/
+hack_DATA = xscreensaver-getimage xscreensaver-getimage-file \ No newline at end of file
diff --git a/kscreensaver/krootbacking/xscreensaver-getimage b/kscreensaver/krootbacking/xscreensaver-getimage
new file mode 100644
index 00000000..4745ac1b
--- /dev/null
+++ b/kscreensaver/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
diff --git a/kscreensaver/krootbacking/xscreensaver-getimage-file b/kscreensaver/krootbacking/xscreensaver-getimage-file
new file mode 100644
index 00000000..ae1b0e9d
--- /dev/null
+++ b/kscreensaver/krootbacking/xscreensaver-getimage-file
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+krootbacking