diff options
-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 |