13.2. Enabling the Ctrl+Alt+Backspace Shortcut
The Ctrl+Alt+Backspace shortcut key combination is used for terminating the X server. You might want to terminate the X server especially when:
- a program caused the X server to stop working.
- you need to switch from your logged-in session quickly.
- you have launched a program that failed.
- you cannot operate in the current session for various reason.
- your screen freezes.
To enable the Ctrl+Alt+Backspace shortcut to forcibly terminate the X server by default for all users, you need to set the
org.gnome.desktop.input-sources.xkb-optionsGSettings key. (For more information on GSettings keys, see Section 9.6, “GSettings Keys Properties”.)
Procedure 13.2. Enabling the Ctrl-Alt-Backspace Shortcut
- Create a
localdatabase for machine-wide settings in
[org/gnome/desktop/input-sources] # Enable Ctrl-Alt-Backspace for all users xkb-options=['terminate:ctrl_alt_bksp']
- Override the user's setting and prevent the user from changing it in
# Lock the list of enabled XKB options /org/gnome/desktop/input-sources/xkb-options
- Update the system databases for the changes to take effect:
- Users must log out and back in again before the system-wide settings take effect.
The Ctrl+Alt+Backspace key combination is now enabled. All users can terminate the X server quickly and easily and doing so bring themselves back to the login prompt.