On 08-07-11 20:00, martin f krafft wrote: > Yes, I am aware of this. I would like to override [lineart] as I do > not want to have to specify --config too. I (the user) want to > change the way [lineart] works (resolution=300, rather than 600) > without having to change the global system configuration files, or > pass additional configuration options.
Thank you! Problem has been reproduced and confirmed and will be fixed. Nice catch! The attached patch should both fix your problem and add the user configuration feature. Kind regards, Jelle
Index: pct-scanner-scripts-devel/pct-scanner-script =================================================================== --- pct-scanner-scripts-devel/pct-scanner-script (revision 227) +++ pct-scanner-scripts-devel/pct-scanner-script (working copy) @@ -4,7 +4,7 @@ # Author: Copyright Jelle de Jong <[email protected]> # Note: Please send me an email if you enhanced the script # Date: 2009-01-09 / 2009-02-26 / 2009-03-31 / 2009-12-28 -# Date: 2009-12-29 / 2010-09-27 / ... +# Date: 2009-12-29 / 2010-09-27 / 2011-07-08 / ... # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,7 +27,7 @@ TEXTDOMAINDIR=/usr/share/locale TEXTDOMAIN=pct-scanner-script -version="0.0.6" +version="0.0.7" author="Jelle de Jong <[email protected]>" donation="http://www.tuxcrafter.net/pages/contact.html#paypal-donation" homepage="https://secure.powercraft.nl/svn/packages/trunk/source/pct-scanner-scripts/" @@ -35,6 +35,7 @@ SYSCONF=/etc/pct-scanner-script.conf SYSDIR=/etc/pct-scanner-script.conf.d/ +USERCONF="${HOME}"/.pct-scanner-script.conf PROCESS=/usr/lib/pct-scanner-scripts/pct-scanner-script-process unset LINEART @@ -236,9 +237,10 @@ thingstoremove+=("$tempfile") trap 'rm -f "${thingstoremove[@]}"' 0 1 2 3 15; [ -z "$tempfile" ] && exit 1 - files="$SYSCONF" + [ -r "$USERCONF" ] && files+="$USERCONF" files+=$'\n' files+=$(run-parts --list "$SYSDIR" ) + [ -r "$SYSCONF" ] && files+=$'\n'"$SYSCONF" if [ -n "$files" ]; then while read file; do set +e
signature.asc
Description: OpenPGP digital signature

