Restarting GNOME 3 Without Closing Running Programs
If you need to restart GNOME while keeping your applications open, you have several options depending on your GNOME version and setup.
Quick restart with Alt+F2
The fastest method is to use GNOME’s run dialog:
- Press
Alt + F2 - Type
rand press Enter
This restarts the GNOME shell while preserving your running applications and their state. Your windows remain open, and you’ll return to your desktop with everything intact.
Why you might need this
GNOME shell sometimes becomes unresponsive, freezes, or displays rendering issues. A full restart of the desktop environment fixes these problems without the overhead of logging out and back in. Applications continue running in the background, and you don’t lose unsaved work (though you should save first to be safe).
Alternative: Restart via systemctl (Wayland/systemd systems)
On modern systems using systemd and Wayland, you can restart GNOME more explicitly:
systemctl --user restart gnome-shell
This is functionally equivalent to the Alt + F2 → r method but useful if you’re scripting or the run dialog isn’t available.
Fallback: Manual X11/Wayland session restart
If neither method works, you can kill the shell process directly:
killall -9 gnome-shell
GNOME will respawn automatically on both X11 and Wayland. Your applications stay running, though you may lose window positions or unsaved state in GNOME itself.
What gets restarted vs. what doesn’t
When you restart GNOME shell:
- Restarted: The desktop environment, panel, activities overview, window manager
- Preserved: All running applications, terminal sessions, browser tabs, text editors
- Reset: Window positions may shift slightly, wallpaper/theme settings reload from disk, open dialogs in GNOME system tools close
Troubleshooting
If Alt + F2 doesn’t work:
- You may have disabled the run dialog in GNOME settings
- Re-enable it in Settings → Keyboard → View and Customize Shortcuts → search for “run”
- Alternatively, use the systemctl command above
If the shell doesn’t restart properly:
- Check
journalctl --user -xefor errors - Ensure no background processes are holding GNOME resources
- On Wayland systems, session restart is more reliable than X11
When to do a full logout instead
If GNOME won’t restart cleanly or you’re experiencing display server issues, a full logout/login cycle is more reliable:
gnome-session-quit --logout
This closes everything and returns you to the login screen, useful when troubleshooting session-level problems.
Thank you so much!