live-build/examples/hooks/lenny_chroot_kpdf-nodrm.sh

18 lines
348 B
Bash
Raw Normal View History

#!/bin/sh
# This is a hook for live-helper(7) to configure KDE's PDF viewer to ignore
# manipulation restriction on "DRM protect" PDF documents.
#
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
# directory.
if [ -d /usr/share/config ]
then
cat > /usr/share/config/kpdfpartrc << EOF
[General]
ObeyDRM=false
EOF
fi