COi*_*Oil 15 indicator network-manager
我们公司有网络问题,网络经常断开。每次断开连接时,Ubuntu (12.04) 都会在屏幕的右上角显示一个弹出窗口,通知我此事件。当它经常出现时,这真的很烦人。如何停用此功能?

ste*_*ver 19
在 12.04 中,您应该能够nm-applet使用gconftool (或gconftool-2)命令通过 gconf 数据库条目切换该行为
gconftool --set /apps/nm-applet/disable-disconnected-notifications --type bool true
Run Code Online (Sandbox Code Playgroud)
您可能还想禁用相应的连接通知
gconftool --set /apps/nm-applet/disable-connected-notifications --type bool true
Run Code Online (Sandbox Code Playgroud)
您可以使用检查当前设置
gconftool -a /apps/nm-applet
Run Code Online (Sandbox Code Playgroud)
对于那些为更高版本的 Ubuntu 寻求答案的人,@Jos 已确认在 14.04 中,设置已迁移到主dconf数据库,/org/gnome/nm-applet并且可以使用 GUIdconf-editor工具进行切换。应该可以使用gsettings.
您可以通过以下方式更改它gsettings:-
gsettings 为 GSettings 提供了一个简单的命令行界面。它允许您获取、设置或监控单个密钥的更改。
要获取当前设置,请运行以下命令:
gsettings get org.gnome.nm-applet disable-disconnected-notifications
Run Code Online (Sandbox Code Playgroud)要设置(启用)禁用断开连接通知,请运行以下命令:
gsettings set org.gnome.nm-applet disable-disconnected-notifications true
Run Code Online (Sandbox Code Playgroud)但是,您可以按如下方式grep 所有可用通知的所有设置gsettings:
gsettings list-recursively | grep "notifications"
Run Code Online (Sandbox Code Playgroud)
& 专门针对 schema = org.gnome.nm-applet,
gsettings list-recursively org.gnome.nm-applet
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3463 次 |
| 最近记录: |