禁用 Gnome 3 通知/弹出窗口/集成通知

发布于 2024-12-13 17:25:59 字数 508 浏览 2 评论 0原文

我想禁用 Gnome 3 通知/弹出窗口/集成通知(如果这对它们来说是正确的术语)。例如,它们是当您通过 Empathy 收到即时消息或 Rhythmbox 开始播放新曲目时出现的通知。

我已经下载了 Gnome 3 Tweak Tool,但在那里找不到解决方案。我搜索了 Google、Gnome 网站和本地帮助(通过 F1),但找不到关闭这些功能的方法。我欢迎这里的解决方案或说明链接。

我还查看了我的主目录和 /usr/share 目录中的所有隐藏文件,并运行了很多查找命令 grep(不区分大小写)“Notification”及其各种子字符串。

我尝试了这个 http://www.youtube.com/watch?v=HvNm3BnymAE 但是这并没有阻止通知的发生。

信息:

Fedora 15 2.6.40.6-0.fc15.i686 GDM 3.0.4

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.

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.

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.

I tried this http://www.youtube.com/watch?v=HvNm3BnymAE but that did not stop the notifications from occurring.

Info:

Fedora 15 2.6.40.6-0.fc15.i686
GDM 3.0.4

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

躲猫猫 2024-12-20 17:25:59

如果您有 Gnome 3.2,您只需单击右上角的用户菜单并打开通知开关即可。

If you have Gnome 3.2, you simply click on your user menu at the top-right and flip the Notifications switch.

枫以 2024-12-20 17:25:59

在 Gnome 3.28.4 上:在屏幕右上角:设置 >通知>打开开关:

“屏幕截图”

来自 CLI:

gsettings set org.gnome.desktop.notifications show-banners false

On Gnome 3.28.4: At top-right corner of screen: Settings > Notifications > Flip the switch:

screenshot

From CLI:

gsettings set org.gnome.desktop.notifications show-banners false
裸钻 2024-12-20 17:25:59

我也为此感到沮丧。

安装 dconf-editor,运行它,然后转到

org.gnome.empathy.notifications

并禁用前三个选项(登录、注销、离开)。

I was frustrated about this too.

Install dconf-editor, run it, and go to

org.gnome.empathy.notifications

and disable the first three options (signin, signout, away).

伴我心暖 2024-12-20 17:25:59

我认为这就是您正在寻找的:

查看 /usr/share/gnome-session/sessions/gnome-fallback.session。在文件末尾附近,您应该看到“RequiredProviders=windowmanager;notifications;”。只需删除“通知”;从那条线开始。

来源

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.

source

千と千尋 2024-12-20 17:25:59

我必须进入 /usr/share/gnome-shell/js/ui/components/autrunManager.js 并注释掉以下行:

Main.messageTray.add(this);

对我来说它位于第 546 行,但谁知道它如何在其他版本的 gnome 中快速移动。

I had to go into /usr/share/gnome-shell/js/ui/components/autrunManager.js and comment out the following line:

Main.messageTray.add(this);

For me it was on line 546, but who knows how it scoots around in other versions of gnome.

椵侞 2024-12-20 17:25:59

使用 dconf 编辑器的另一个位置是 org.gnome.desktop.notifications 下。那里有一个很大的字符串,其中包含将接收 gnome 通知的所有应用程序。如果应用程序有自己的通知,您可以在应用程序中启用它们并在 org.gnome.desktop.notifications 中禁用系统通知

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文