Updating kpdf-nodrm hook to also work with KDE4.
This commit is contained in:
parent
7393c4508d
commit
6bb915f3b4
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue