Ubuntu – How to *disable* Ctrl+Alt+Backspace

12.04keyboardkillshortcut-keysxserver

Building on a question from 2010 (3 years ago) I'm trying to achieve the exact opposite: I want to disable the Ctrl+Alt+ keyboard shortcut to kill the X server. For me, it appears to be disabled in System->Preferences->Keyboard but practically it's still up and running.

dontzap doesn't seem to be "active" (as in actively developed) either, and it seems counterintuitive to have to install it in order to disable this key-combo.

Any other ways to properly disable the shortcut?


PS: I think it's a bug.

PPS: Some time ago, I enabled it cuz I thought it was kinda cool – not knowing that it was a one-way street without a functioning / reliable option to disable it again.

Best Answer

Please edit the file /etc/X11/xorg.conf:

gksu gedit /etc/X11/xorg.conf

There should be a section in this file called "ServerFlags". If it's not there, add it as below at the end of the file. If it is there, make sure that the line Option "DontZap" "yes" is in there with yes as a parameter:

Section "ServerFlags"
Option "DontZap"  "yes"
EndSection
Related Question