spacr.qt.safespacr

Start spaCR in safe mode, with every preference read as its default.

When a saved preference is what makes spaCR die on launch there is otherwise no way in – the ordinary start reads that preference before it has drawn anything. safespacr reads every preference as its default instead, turns off the backdrop, setting animations, verbose logging and preloading, and opens far enough for the user to change a value and save it.

Writes go to the real preference store. A safe mode that saved to a scratch file would leave the broken value in place, and the next ordinary start would fail on it again.

Functions

main(→ int)

Launch spaCR with preferences read as defaults and extras off.

Module Contents

spacr.qt.safespacr.main(argv: list[str] | None = None) → int[source]

Launch spaCR with preferences read as defaults and extras off.

Parameters:

argv – Optional spaCR command-line arguments. None reads sys.argv[1:].

Returns:

Application exit code from spacr.qt.run().