Only update plocate db on power to prevent hangs after sleep

This commit is contained in:
David Heinemeier Hansson committed 2026-03-08 11:09:57 +01:00
1 parent fd03d57110
commit 3aff0017a1
3 files changed
+7

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
sudo install -d /etc/systemd/system/plocate-updatedb.service.d
printf '%s\n' '[Unit]' 'ConditionACPower=true' | sudo tee /etc/systemd/system/plocate-updatedb.service.d/ac-only.conf >/dev/null
sudo systemctl daemon-reload