aboutsummaryrefslogtreecommitdiffstats
path: root/deckit/modules
diff options
context:
space:
mode:
Diffstat (limited to 'deckit/modules')
-rw-r--r--deckit/modules/actions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/deckit/modules/actions.py b/deckit/modules/actions.py
index 276c753..057d3b2 100644
--- a/deckit/modules/actions.py
+++ b/deckit/modules/actions.py
@@ -40,7 +40,10 @@ def _popen(cmd):
def _locked():
- return subprocess.run(["pidof", "hyprlock"], capture_output=True).returncode == 0
+ try:
+ return subprocess.run(["pidof", "hyprlock"], capture_output=True).returncode == 0
+ except OSError:
+ return False # no pidof: never locked, and the watcher keeps running
def _key(code):