summaryrefslogtreecommitdiffstats
path: root/tdescreensaver/krootbacking
diff options
context:
space:
mode:
Diffstat (limited to 'tdescreensaver/krootbacking')
-rw-r--r--tdescreensaver/krootbacking/CMakeLists.txt17
-rw-r--r--tdescreensaver/krootbacking/Makefile.am8
-rw-r--r--tdescreensaver/krootbacking/xscreensaver-getimage9
-rw-r--r--tdescreensaver/krootbacking/xscreensaver-getimage-file3
4 files changed, 37 insertions, 0 deletions
diff --git a/tdescreensaver/krootbacking/CMakeLists.txt b/tdescreensaver/krootbacking/CMakeLists.txt
new file mode 100644
index 00000000..bedfa71e
--- /dev/null
+++ b/tdescreensaver/krootbacking/CMakeLists.txt
@@ -0,0 +1,17 @@
+#################################################
+#
+# (C) 2012 Slavek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install(
+ FILES
+ xscreensaver-getimage
+ xscreensaver-getimage-file
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/tdescreensaver/krootbacking/Makefile.am b/tdescreensaver/krootbacking/Makefile.am
new file mode 100644
index 00000000..4f4d3e3d
--- /dev/null
+++ b/tdescreensaver/krootbacking/Makefile.am
@@ -0,0 +1,8 @@
+INCLUDES = $(all_includes)
+
+hackdir = $(kde_bindir)
+hack_DATA = xscreensaver-getimage xscreensaver-getimage-file
+
+install-data-hook:
+ chmod 755 $(DESTDIR)$(hackdir)/xscreensaver-getimage
+ chmod 755 $(DESTDIR)$(hackdir)/xscreensaver-getimage-file
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
diff --git a/tdescreensaver/krootbacking/xscreensaver-getimage-file b/tdescreensaver/krootbacking/xscreensaver-getimage-file
new file mode 100644
index 00000000..ae1b0e9d
--- /dev/null
+++ b/tdescreensaver/krootbacking/xscreensaver-getimage-file
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+krootbacking