summaryrefslogtreecommitdiff
path: root/examples/hooks/kde-no-pdf-drm.sh
blob: 2eb3739c321101e86b00616ff1d778f1af9bc647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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