Keep inhibits across daemon restarts

Save held inhibits to $XDG_RUNTIME_DIR/xautolock-inhibit.json and restore them on start if the previous instance stopped within --restore-window (default 30s) on the same bus and the senders are still connected. The file is touched every 10s while inhibits are held, so crashes are timed too.
This commit is contained in:
Daniele Fucini
2026-10-17 16:49:40 +02:00
parent a36e700df6
commit 265966ffe9
3 changed files with 144 additions and 17 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
# Maintainer: Daniele Fucini <dfucini [at] gmail [dot] com>
pkgname=xautolock-inhibit
pkgver=0.1.2
pkgver=0.2
pkgrel=1
pkgdesc='Honor org.freedesktop.ScreenSaver inhibit requests by disabling xautolock'
arch=('any')