diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-19 22:30:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-19 22:30:06 +0000 |
commit | d9432724802cad439f6296a8793d51415dd1c15f (patch) | |
tree | c7341a0ac182cac3431a86c748423ac3e19c4ee9 | |
parent | 65c92df31bb4250d7ed72f588532489c5392c280 (diff) | |
download | tdeartwork-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
-rw-r--r-- | kscreensaver/krootbacking/Makefile.am | 3 | ||||
-rw-r--r-- | kscreensaver/krootbacking/xscreensaver-getimage | 9 | ||||
-rw-r--r-- | kscreensaver/krootbacking/xscreensaver-getimage-file | 3 |
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 |