summaryrefslogtreecommitdiff
path: root/examples/hooks/kde-no-pdf-drm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hooks/kde-no-pdf-drm.sh')
-rwxr-xr-xexamples/hooks/kde-no-pdf-drm.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/hooks/kde-no-pdf-drm.sh b/examples/hooks/kde-no-pdf-drm.sh
new file mode 100755
index 000000000..2eb3739c3
--- /dev/null
+++ b/examples/hooks/kde-no-pdf-drm.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# This is a hook for live-helper(7) to configure KDEs PDF viewer to ignore
+# manipulation restrcition on "DRM protect" PDF documents.
+#
+# To enable it, copy or symlink this hook into your config/chroot_local-hooks
+# directory.
+
+if [ -d /usr/share/kde4/config ]
+then
+ # KDE4 (squeeze/sid)
+
+cat > /usr/share/kde4/config/okularpartrc << EOF
+[General]
+ObeyDRM=false
+EOF
+
+elif [ -d /usr/share/config ]
+then
+ # KDE3 (etch/lenny)
+
+cat > /usr/share/config/kpdfpartrc << EOF
+[General]
+ObeyDRM=false
+EOF
+
+fi