关闭 Ubuntu 弹出的关机/重启选择框

关闭弹出的关机(或重启)选择框

场景:右上角的系统 -> 关机,默认弹出一个选择关机或重新启动两个按钮的框

1
gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown true

恢复弹出框

1
gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown false

(完)