Ensure Walker can't just die and stay dead (#4555)

This commit is contained in:
David Heinemeier Hansson
2026-02-09 13:08:13 +01:00
committed by GitHub
parent ecf48a3b4c
commit ff234bba1f
4 changed files with 21 additions and 0 deletions

View File

@@ -5,9 +5,17 @@
# Ensure walker is set to autostart
mkdir -p ~/.config/autostart/
cp $OMARCHY_PATH/default/walker/walker.desktop ~/.config/autostart/
# And restarts if it crashes or is killed
mkdir -p ~/.config/systemd/user/app-walker@autostart.service.d/
cp $OMARCHY_PATH/default/walker/restart.conf ~/.config/systemd/user/app-walker@autostart.service.d/restart.conf
systemctl --user daemon-reload
# Refresh configs
omarchy-refresh-config walker/config.toml
omarchy-refresh-config elephant/calc.toml
omarchy-refresh-config elephant/desktopapplications.toml
# Restart service
omarchy-restart-walker

View File

@@ -0,0 +1,3 @@
[Service]
Restart=always
RestartSec=2

View File

@@ -4,6 +4,10 @@
mkdir -p ~/.config/autostart/
cp $OMARCHY_PATH/default/walker/walker.desktop ~/.config/autostart/
# And is restarted if it crashes or is killed
mkdir -p ~/.config/systemd/user/app-walker@autostart.service.d/
cp $OMARCHY_PATH/default/walker/restart.conf ~/.config/systemd/user/app-walker@autostart.service.d/restart.conf
# Create pacman hook to restart walker after updates
sudo mkdir -p /etc/pacman.d/hooks
sudo tee /etc/pacman.d/hooks/walker-restart.hook > /dev/null << EOF

6
migrations/1770375817.sh Normal file
View File

@@ -0,0 +1,6 @@
echo "Ensure walker service is restarted if it's killed or crashes"
mkdir -p ~/.config/systemd/user/app-walker@autostart.service.d/
cp $OMARCHY_PATH/default/walker/restart.conf ~/.config/systemd/user/app-walker@autostart.service.d/restart.conf
systemctl --user daemon-reload