theme: ignore perm errors for /dev/pts

Fixes #27
This commit is contained in:
2 * r + 2 * t
2025-07-22 16:01:12 +10:00
parent 465c200c83
commit 3deb726278
+5 -2
View File
@@ -81,8 +81,11 @@ def apply_terms(sequences: str) -> None:
pts_path = Path("/dev/pts")
for pt in pts_path.iterdir():
if pt.name.isdigit():
with pt.open("a") as f:
f.write(sequences)
try:
with pt.open("a") as f:
f.write(sequences)
except PermissionError:
pass
def apply_hypr(conf: str) -> None: