Crash capture stays on by default, but Trigger > Toggle > Crash Capture (or `omarchy toggle crash-capture`) now turns the watcher off. The toggle writes the usual flag file and stops the unit for this session; the unit checks the same flag with ConditionPathExists, so the choice survives a logout without the unit having to be disabled. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
20 lines
652 B
Desktop File
20 lines
652 B
Desktop File
[Unit]
|
|
Description=Announce process crashes and offer an AI diagnosis
|
|
# Needs the session bus to notify, and uwsm-app to open the diagnosis terminal.
|
|
# Both are up only after graphical-session.target.
|
|
After=graphical-session.target
|
|
PartOf=graphical-session.target
|
|
ConditionEnvironment=WAYLAND_DISPLAY
|
|
# Set by omarchy-toggle-crash-capture. Checked here so a disabled watcher stays
|
|
# disabled across logins without the unit having to be disabled.
|
|
ConditionPathExists=!%h/.local/state/omarchy/toggles/crash-capture-off
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/bin/omarchy-crash-watch
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=graphical-session.target
|