Knowing how to close a GNOME session is useful when you need to switch users, finish work on a shared computer, or safely sign out before shutting down. Logging out closes your open applications and ends your current desktop session, but it does not turn off the computer. The exact location of the logout option can vary slightly between GNOME versions and Linux distributions, but the process is straightforward once you know where to look.
This guide explains how to close a GNOME session using the desktop interface, keyboard shortcuts, and the terminal. It also covers the difference between logging out, locking the screen, restarting, and shutting down, so you can choose the right action without losing unsaved work.
What Happens When You Close a GNOME Session?
A GNOME session is your active desktop environment: it includes your open windows, running applications, panels, and personal desktop settings. When you log out, GNOME closes that session and returns you to the login screen. You, or another user, can then sign in again.
Logging out is different from shutting down. A logout leaves the computer powered on, while a shutdown turns it off. Restarting closes the current session and starts the computer again. Locking the screen keeps your session and applications running but requires authentication to return to the desktop.
Before closing a session, save your documents and check for important tasks running in the background. Applications may prompt you to save changes, but not every program can restore unsaved work after you sign out.
How to Close a GNOME Session from the Desktop
The simplest way to close a GNOME session is to use the system menu in the top-right corner of the screen. The menu’s appearance and wording may differ depending on your GNOME version, Linux distribution, and desktop customizations.
- Save your work and close any applications that may have unsaved changes.
- Click the system status area in the top-right corner of the screen. It may show network, sound, battery, or power icons.
- Open the power or session options. In some GNOME versions, you may need to expand the Quick Settings panel or click a power icon within it.
- Select Log Out, Log Out…, or a similarly named option.
- If a confirmation dialog appears, review the message and choose Log Out again.
GNOME may display a countdown before ending the session. This gives you a chance to cancel if you selected the option accidentally. If other users are signed in, the confirmation screen may also explain how logging out will affect their sessions. Read the prompt before continuing.
Once the session closes, the login screen appears. Choose your account and enter your password to start a new GNOME session. On a shared computer, you can leave the system at the login screen for the next person.
Finding the Logout Option in Different GNOME Versions
GNOME’s menus have changed over time, so instructions for one release may not match another exactly. On some versions, the logout command appears directly in the system menu. On others, the system menu opens a Quick Settings panel, where power and session controls are grouped in a separate submenu.
If you do not immediately see Log Out, look for a power symbol, a menu labeled with your username, or an option such as Power Off / Log Out. Open that menu and select the logout choice rather than the shutdown or restart choice. Some distributions also add their own controls or move session options to a different part of the menu.
When the interface differs from these steps, use the Activities overview to search for help or check your distribution’s desktop documentation. You can also use one of the keyboard or terminal methods below, if available on your system.
How to Log Out of GNOME with a Keyboard
GNOME does not use the same universal keyboard shortcut for logging out on every distribution. Shortcuts can be changed in system settings, and some distributions do not assign a logout shortcut by default. The familiar Super+L shortcut generally locks the screen; it does not end the GNOME session.
If your system has a logout shortcut, you can find or change it in the keyboard settings. Open Settings, select Keyboard, and review the shortcuts listed for system or session actions. The names and menu organization can vary by GNOME release. If a logout action is available, follow the on-screen instructions to see its shortcut or assign one.
You can also open the system menu using the keyboard, though the key sequence depends on your desktop configuration. If you are unsure which shortcut is assigned, the on-screen menu is a reliable option and helps prevent accidentally locking, restarting, or shutting down the computer instead.
How to Close a GNOME Session from the Terminal
If you have access to a terminal, the gnome-session-quit command can request a logout. Open Terminal from the Activities overview or your application menu, then run:
gnome-session-quit --logout
Depending on your GNOME version and distribution, the command may display a confirmation dialog or close the session according to the system’s configured behavior. Save your work before running it. If the command is not found, your installation may not include the utility, or your desktop may use a different session manager. In that case, use the desktop menu or consult your distribution’s documentation.
Some versions of the utility support options for restarting or powering off the computer as well. These actions are not the same as logging out, so check the command’s available options with gnome-session-quit --help before using them. Avoid using options that suppress confirmation unless you understand the consequences and have saved your work.
Terminal commands are especially useful when working through a remote shell or troubleshooting a desktop menu. However, logging out can close graphical applications and disconnect programs associated with the session. Do not run a logout command remotely unless you intend to end that desktop session.
Log Out, Lock, Restart, or Shut Down?
The options in GNOME’s system menu can look similar, but they have different results. Choosing the right one helps protect your work and avoids interrupting other users.
- Log Out: Ends your current GNOME session and returns to the login screen. The computer stays on.
- Lock: Secures the screen while keeping your session and applications running. Enter your password to return to your desktop.
- Restart: Closes active sessions and reboots the computer. Use this when a restart is needed, not just to switch accounts.
- Power Off: Closes sessions and turns off the computer. Any unsaved work may be lost.
- Switch User: Opens another login session while your current one may remain active in the background. This can use additional system resources.
For a short break, lock the screen. To let someone else use the computer while keeping your session available, consider switching users if your system supports it. To finish your time at the computer without turning it off, log out.
How to Close a GNOME Session on a Shared Computer
On a shared or public computer, logging out is usually safer than simply closing the laptop lid or walking away from a locked screen. A logout ends your desktop session, while a lock leaves your account signed in and its applications running. Follow any workplace, school, or library procedures for shared devices.
Before you sign out, save files to a location you can access again and close private documents or browser windows. If you used a web application, consider signing out of that service too; ending your GNOME session does not necessarily sign you out of every website. Remove removable storage devices when it is safe to do so.
After choosing Log Out, wait for the login screen to appear before leaving. This confirms that the session has ended. If you are handing the computer to another person, do not share your password or leave sensitive information visible on the screen.
Troubleshooting GNOME Logout Problems
If the logout option is missing, first check the system menu’s power or session submenu. GNOME layouts vary, and some distributions place logout alongside restart and shutdown. If you cannot find the option, try the terminal command gnome-session-quit --logout, provided the command is available on your system.
If an application prevents logout, look for a dialog asking whether to save changes or close the application. Return to the application if possible, save your work, and then try logging out again. Avoid forcing the session to end unless you accept that unsaved data could be lost.
If the desktop appears frozen, give it a little time and check whether a save or update operation is in progress. A frozen display does not always mean the computer has stopped working. If normal controls remain unavailable, follow your Linux distribution’s recovery guidance rather than repeatedly issuing logout or power commands.
If the login screen does not appear after logging out, another session or a system-specific display manager may be involved. Restarting is a separate action and may interrupt other users. On a shared system, check whether someone else is signed in before restarting or powering off the machine.
Frequently Asked Questions About Closing a GNOME Session
Does logging out close my applications? Yes. Applications in your current GNOME session are generally closed when you log out. Some apps may offer to save work or reopen windows later, but you should not rely on automatic recovery.
Will logging out turn off my computer? No. Logging out ends your session and returns the computer to the login screen. Choose Power Off if you want to shut down the computer.
Is Super+L the logout shortcut? On many GNOME setups, Super+L locks the screen rather than logging out. Check your keyboard settings for the shortcuts configured on your system.
Can I log out from Terminal? If the utility is installed, run gnome-session-quit --logout. Save your work first, because the command can end your session and close applications.
What should I do if I only want to leave briefly? Lock the screen rather than logging out. Your session stays active, so you can return to your open applications after unlocking.
Conclusion
To close a GNOME session, open the system menu, find the power or session controls, and choose Log Out. If you prefer the command line, use gnome-session-quit --logout when the utility is available. Since GNOME menus and shortcuts can vary by version, check your system’s settings if the option is not where you expect it. Save your work first, and remember that logging out ends your desktop session without shutting down the computer.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.