diff options
author | Will Thompson <wjt@endlessos.org> | 2022-03-09 13:51:25 +0000 |
---|---|---|
committer | Will Thompson <wjt@endlessos.org> | 2022-03-09 13:58:56 +0000 |
commit | 060a1acc7eaf60cdcc0d4716d2033ff78e92babd (patch) | |
tree | bc2eb117dbf48d54b5e1d9f3a05ec7299c3dfe4d | |
parent | 4469315153b079f81b1cfe6ade505745ef9e0c5d (diff) | |
download | gnome-initial-setup-wip/wjt/respawn-after-crash.tar.gz |
Ask systemd to be respawned on failurewip/wjt/respawn-after-crash
Currently, if Initial Setup crashes, you are left staring at a blank
wallpaper, with no option but to shut down the computer.
If the session is managed by systemd, we can ask it to respawn
gnome-initial-setup.service (this application) on failure. The user will
be dumped back at the first page, which is not ideal, but is still an
improvement. In addition, certain settings (like locale, keyboard
layout, Wi-Fi network, and configured online accounts) are applied at
the point they are chosen, so will be preserved across a crash and
relaunch.
Fixes #26
-rw-r--r-- | data/gnome-initial-setup.service.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/gnome-initial-setup.service.in b/data/gnome-initial-setup.service.in index bb0af2e..e8966d9 100644 --- a/data/gnome-initial-setup.service.in +++ b/data/gnome-initial-setup.service.in @@ -10,4 +10,4 @@ After=gnome-session.target Type=simple ExecStart=@libexecdir@/gnome-initial-setup ExecStopPost=-@libexecdir@/gnome-session-ctl --shutdown -Restart=no +Restart=on-failure |