如何删除关机确认菜单?

如何删除关闭确认菜单“你确定要关闭”吗? 这是我按下关机后弹出的菜单。

我无法使用10.04或11.04的旧指令在gconf_editor中导航到它。

对于11.10

运行dconf-editor
(Alt + F2或从终端,必须先安装)

 /org/gnome/gnome-session/ 

取消选中“logout-prompt”

我还没有找到一种方法来重新启动菜单并禁止确认。
(感谢编辑fossfreedom)

对于10.04 / 10.10和11.04

运行gconf-editor
(Alt + F2或终端)

 /apps/gnome-session/options 

取消选中“logout_prompt”

 /apps/indicator-session 

检查“suppress_logout_restart_shutdown”

这将删除Oneiric Ocelot之前的版本中恼人的对话框。

Ubuntu 13.10

打开终端并运行gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown true 。 这将禁用该对话框。

通过Donarsson : 没有额外的问题就关闭了

在Ubuntu 11.10中对我来说:

 sudo apt-get install gconf-editor dconf-tools dconf-editor 

转到/apps/indicator-session

启用: suppress-logout-restart-shutdown

干杯!