summaryrefslogtreecommitdiff
path: root/src/caelestia
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-22 16:01:12 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-22 16:01:12 +1000
commit3deb726278d9db7d5f8c4d5446aeb493f96a6901 (patch)
treeccf3a5b7aa9dd7a46bfa8813febd4606a543b6f7 /src/caelestia
parentnix: fix circular dep (diff)
downloadcaelestia-cli-3deb726278d9db7d5f8c4d5446aeb493f96a6901.tar.gz
caelestia-cli-3deb726278d9db7d5f8c4d5446aeb493f96a6901.tar.bz2
caelestia-cli-3deb726278d9db7d5f8c4d5446aeb493f96a6901.zip
theme: ignore perm errors for /dev/pts
Fixes #27
Diffstat (limited to 'src/caelestia')
-rw-r--r--src/caelestia/utils/theme.py7
1 files changed, 5 insertions, 2 deletions
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: