omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Update log is written to /tmp and lost on reboot

Open amanat361 opened this issue 8 months ago • 0 comments

Problem

omarchy-update-perform writes the update log to /tmp/omarchy-update.log. When the update includes a kernel upgrade, omarchy-update-restart triggers a reboot, which wipes /tmp. The log is lost before the user can review it.

Suggestion

Write the log to ~/.local/state/omarchy/update.log instead. That directory already exists and is used for migration state and toggles. It survives reboots and follows XDG conventions.

The change is one line in bin/omarchy-update-perform:

# before
exec > >(tee "/tmp/omarchy-update.log") 2>&1

# after
exec > >(tee "$HOME/.local/state/omarchy/update.log") 2>&1

amanat361 avatar Mar 10 '26 15:03 amanat361