Cleanup previous PR
Some checks are pending
CI / Linux (python=3.14 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.13 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, macos-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run

This commit is contained in:
Kovid Goyal 2026-09-19 06:49:53 +05:30
parent ad2659bd18
commit 8a101a6d91
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -218,8 +218,10 @@ def store_effective_config() -> tuple[str, str]:
path = os.path.join(dest, f'{os.getpid()}')
os.replace(tf.name, path)
except OSError as err:
# writing the effective config is a best effort debugging aid, do not
# let it prevent kitty from starting, for example, when the disk is full
# effective config is used by some kittens to read the config of the
# current kitty instance. If missing they fallback to parsing
# kitty.conf so ignore the error which would prevent kitty from
# starting.
msg = f'Failed to store effective config with error: {err}'
log_error(msg)
return '', msg