From 3deb726278d9db7d5f8c4d5446aeb493f96a6901 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 22 Jul 2025 16:01:12 +1000 Subject: theme: ignore perm errors for /dev/pts Fixes #27 --- src/caelestia/utils/theme.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/caelestia/utils/theme.py b/src/caelestia/utils/theme.py index 500a44e..efc2847 100644 --- a/src/caelestia/utils/theme.py +++ b/src/caelestia/utils/theme.py @@ -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: -- cgit v1.2.3-freya