Linux 禁用 Gnome 3 通知/弹出窗口/集成通知
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8011261/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Disable Gnome 3 notifications/pop-ups/integrated notifications
提问by jmm
I would like to disable the Gnome 3 notifications/pop-ups/integrated notifications (if that's even the right term for them). For example, they're the notifications that appear when your receive an IM via Empathy, or when Rhythmbox begins playing a new track.
我想禁用 Gnome 3 通知/弹出窗口/集成通知(如果这对它们来说甚至是正确的术语)。例如,它们是当您通过 Empathy 收到 IM 或 Rhythmbox 开始播放新曲目时出现的通知。
I have downloaded the Gnome 3 Tweak Tool, but cannot find a solution in there. I have searched Google, the Gnome website, and the local help (via F1) but cannot find a way to turn these off. I would welcome either a solution here or a link to instructions.
我已经下载了 Gnome 3 Tweak Tool,但在那里找不到解决方案。我已经搜索过谷歌、Gnome 网站和本地帮助(通过 F1),但找不到关闭这些的方法。我欢迎这里的解决方案或说明的链接。
I have also looked through all the hidden files in my home directory, and in /usr/share directories, and run quite a few find commands grepping (case-insensitive) for "Notification" and all sorts of substrings thereof.
我还查看了我的主目录和 /usr/share 目录中的所有隐藏文件,并为“通知”及其各种子字符串运行了很多查找命令 grepping(不区分大小写)。
I tried this http://www.youtube.com/watch?v=HvNm3BnymAEbut that did not stop the notifications from occurring.
我试过这个http://www.youtube.com/watch?v=HvNm3BnymAE但这并没有阻止通知的发生。
Info:
信息:
Fedora 15 2.6.40.6-0.fc15.i686 GDM 3.0.4
Fedora 15 2.6.40.6-0.fc15.i686 GDM 3.0.4
回答by Christopher Neylan
I think this is what you're looking for:
我认为这就是你要找的:
Take a look in /usr/share/gnome-session/sessions/gnome-fallback.session. Near the end of the file, you should see "RequiredProviders=windowmanager;notifications;". Just delete "notifications;" from that line.
查看 /usr/share/gnome-session/sessions/gnome-fallback.session。在文件末尾附近,您应该看到“RequiredProviders=windowmanager;notifications;”。只需删除“通知”;从那条线。
回答by Christopher Neylan
If you have Gnome 3.2, you simply click on your user menu at the top-right and flip the Notifications switch.
如果您有 Gnome 3.2,您只需单击右上角的用户菜单并翻转通知开关。
回答by Thomas Vander Stichele
I was frustrated about this too.
我也为此感到沮丧。
Install dconf-editor, run it, and go to
安装 dconf-editor,运行它,然后转到
org.gnome.empathy.notifications
org.gnome.empathy.notifications
and disable the first three options (signin, signout, away).
并禁用前三个选项(登录、注销、离开)。
回答by kjc26ster
I had to go into /usr/share/gnome-shell/js/ui/components/autrunManager.js and comment out the following line:
我不得不进入 /usr/share/gnome-shell/js/ui/components/autrunManager.js 并注释掉以下行:
Main.messageTray.add(this);
For me it was on line 546, but who knows how it scoots around in other versions of gnome.
对我来说,它在第 546 行,但谁知道它是如何在其他版本的 gnome 中运行的。
回答by Brewsky
Another location using the dconf editor is under org.gnome.desktop.notifications. There is a large string there that has all the applications that will receive the gnome notification. If the app has its own notifications you can enable them in the app and disable the system notification in org.gnome.desktop.notifications
另一个使用 dconf 编辑器的位置是在 org.gnome.desktop.notifications 下。那里有一个大字符串,其中包含将接收 gnome 通知的所有应用程序。如果应用程序有自己的通知,您可以在应用程序中启用它们并在 org.gnome.desktop.notifications 中禁用系统通知