修改ubuntu按下关机键触发的事件
Posted 夜半弯
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了修改ubuntu按下关机键触发的事件相关的知识,希望对你有一定的参考价值。
gsettings set org.gnome.settings-daemon.plugins.power button-power shutdown
will change your the behaviour of the power button of your system from interactive (default) to immediate normal shutdown.
The command is gsettings set org.gnome.settings-daemon.plugins.power button-power <option>
Available options are:
- Blank: does nothing
- Suspend: makes your system suspend
- Shutdown: starts a normal issued shutdown procedure
- Hibernate: hibernates your system
- Nothing: does nothing
- Log out: log your user out
参考链接:http://askubuntu.com/questions/430776/how-can-i-modify-the-power-button-behaviour
以上是关于修改ubuntu按下关机键触发的事件的主要内容,如果未能解决你的问题,请参考以下文章
为啥这个简单的 NSWindow 创建代码会在 ARC 下关闭时触发自动释放池崩溃?
android中的listview当长按事件触发后怎么接着触发点击事件。。。
AngularJS谷歌地图点击事件不在ios设备ipad和iphone中触发