medoc writes

I’ve hooked into KDE’s session and power management to make sure recollindex only runs when my laptop is on AC power, and not during suspend and wakeup (otherwise, I suspend it with SIGSTOP). Also, my startup script runs recollindex at maximum niceness and uses ionice to put it into I/O class "idle". All this could presumably be done by the program itself.

medoc writes

  • recollindex uses setpriority() to run at lowest priority since recoll 1.13

  • ionice is linux-specific and non-portable. It’s as well to let the startup script deal with it.

  • Same for power status detection, I feel that this is really too dependant on the environment to be included in the program. I would much welcome script examples or other pieces of documentation, to be added to the Wiki or the main documentation.