Switch to unified view

a/src/desktop/recoll_index_on_ac.sh b/src/desktop/recoll_index_on_ac.sh
1
#!/bin/sh
1
#!/bin/sh
2
2
3
# This is a shell script that starts and stops the recollindex daemon
3
# This is a shell script that starts and stops the recollindex daemon
4
# depending on whether or not the power supply is plugged in.  It should be
4
# depending on whether or not the power supply is plugged in.  It should be
5
# called from the file ~/.config/autostart/recollindex.desktop.
5
# called from the file ~/.config/autostart/recollindex.desktop.
6
6
#
7
# That is: make the script executable (chmod +x) and replace in
8
# recollindex.desk the line:
9
#   Exec=recollindex -w 60 -m 
10
# With
11
#   Exec=/path/to/recoll_index_on_ac.sh
12
#
13
#
7
# By: The Doctor (drwho at virtadpt dot net)
14
# By: The Doctor (drwho at virtadpt dot net)
8
# License: GPLv3
15
# License: GPLv3
9
# 
16
# 
10
# Modifications by J.F Dockes 
17
# Modifications by J.F Dockes 
11
#  - replaced "acpi" usage with "on_ac_power" which seems to be both
18
#  - replaced "acpi" usage with "on_ac_power" which seems to be both