diff options
Diffstat (limited to 'src/caelestia/utils')
| -rw-r--r-- | src/caelestia/utils/theme.py | 7 |
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: |