Updating kpdf-nodrm hook to also work with KDE4.

This commit is contained in:
Daniel Baumann 2009-06-02 17:10:36 +02:00
parent 7393c4508d
commit 6bb915f3b4
2 changed files with 27 additions and 12 deletions

View File

@ -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

View File

@ -1,12 +0,0 @@
#!/bin/sh
# This is a hook for live-helper(7) to configure kpdf to ignore manipulation
# restrcition on "DRM protect" PDF documents.
#
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
# directory.
cat > /etc/kde3/kpdfpartrc << EOF
[General]
ObeyDRM=false
EOF