action scripts are configuration files?
scanbd is a scanner button daemon looking for scanner button pressed
Brought to you by:
wimalopaan
Hello,
I'd like to ask why the action scripts are put under /etc. In my understanding that is for configuration files, but the scripts shouldn't really need any configuration (or if they do, that part could be carved out). Wouldn't it be better to have the scripts under /usr/lib/scanbd?
You can use scriptdir option to change that.
Can this be passed via the command line? I tried "SCRIPTDIR=/tmp/scanbd/ scanbd -f" but it didn't seem to have any effect.
My goal here is to separate genuine configuration (such as the desired output format (PDF, PNG, JPG, TIFF)) from the scripts. The latter should essentially be the same for everyone and thus affect upstream as well.
Last edit: Rolf 2014-10-13
Having scripts under /etc is indeed a violation of Debian policy and the FHS standard so I would strongly suggest for this to be fixed upstream.
https://www.debian.org/doc/packaging-manuals/fhs/fhs-2.3.html#ETCHOSTSPECIFICSYSTEMCONFIGURATION (this document is in no way Debian specific)
Ahm, how exactly was this closed? I can't see any change to ameliorate the FHS-violation.
Well, if you want to stick to the fhs or if the specific distribution has a specific filesystem-policy, you can change the defualt / upstream configuration to place the configs (scanbd.conf) under /etc and the scripts under /usr/{share,lib}. Feel free to do so.
On the other hand there are other people not using a prebuilt package to install scanbd - these are the majority in my observation (me included ;-)) I do not intend to break this in the forseeing future.
Well, I am not advocating to break installations for the compile-from-scratch crowd. I am simply surprised to see you are actively promoting to violate important standards in the default installation.
Last edit: Rolf 2015-02-25
If you want to stick to the fhs or if the specific distribution has a specific filesystem-policy, you can change the default spotify setting
Last edit: Thiago 2025-07-25