「GNOME」- 常见问题汇总

通知无法关闭,一直显示

How To Reset Gnome Desktop Settings To Default – Linux Uprising Blog

问题描述

在显示通知后,点击关闭(x)按钮,或者点击通知,都无法关闭通知,并且其他通知也无法弹出。

问题原因

未知。下面是相关问题:
Desktop Notifications do not go away · Issue #1040 · RocketChat/Rocket.Chat.Electron
Can’t turn off notification in GNOME 3.36.2 : gnome

解决方法

重置所有 GNOME 设置:dconf reset -f /org/gnome/

Unable to lock

问题描述

桌面提示 Unable to lock, Lock was blocked by an application

原因分析

Unity7 and Gnome 3: How to disable “lock was blocked by an application”, so that Gnome3 always locks the screen?

调高日志等级或许会看到原因(我们没有进一步追踪):

# journalctl -n 100
...
Mar 12 21:59:53 laptop.dc.d3rm.org gnome-shell[1890]: error: Unable to lock: Lock was blocked by an application
Mar 12 22:03:48 laptop.dc.d3rm.org update-notifier.desktop[931690]: /usr/lib/python3/dist-packages/aptdaemon/gtk3widgets.py:47: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_ver>
Mar 12 22:03:48 laptop.dc.d3rm.org update-notifier.desktop[931690]:   from gi.repository import Gdk
Mar 12 22:03:48 laptop.dc.d3rm.org update-notifier.desktop[931690]: /usr/lib/python3/dist-packages/aptdaemon/gtk3widgets.py:48: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_ver>
Mar 12 22:03:48 laptop.dc.d3rm.org update-notifier.desktop[931690]:   from gi.repository import Gtk
Mar 12 22:06:17 laptop.dc.d3rm.org systemd[1651]: Started Application launched by gnome-shell.
...

解决方案

对于 VirtualBox 程序,File ⇒ Preferences… ⇒ Input ⇒ Auth Capture Keyboard,取消选择;
经过几小时的观察,现在已能够自动锁屏;
但是,这样 Guest 就无法获取 Alt+Tab 快捷键组合……我们最后还是决定忍受这个提示(除非彻底关闭通知);