我刚刚升级到Ubuntu 17.04,使用GNOME桌面。突然间,我开始看到每隔大约2分钟就会弹出“打印机已添加”的OSD弹窗通知!这真的很分散注意力。
有人知道我如何在源头停止它们,或者至少从OSD通知中过滤掉它们吗?
有人知道我如何在源头停止它们,或者至少从OSD通知中过滤掉它们吗?
colord
守护进程失败,从而导致CUPS想要“重新安装”打印机驱动程序,进而导致“打印机已安装”OSD消息的重复出现。也许作为一个线索,当安装“非无驱”打印机驱动程序时,相应的ICC文件会被正确安装。编辑/etc/cups/cups-browsed.conf
文件,将BrowseRemoteProtocols CUPS dnssd
行改为BrowseRemoteProtocols none
从终端重启CUPS服务:service cups restart
请注意,这假设您的打印机连接在局域网上,而不是直接连接到您的计算机。如果您的打印机是本地连接(物理连接),您可能需要编辑BrowseProtocols
(未经测试)。
重新启动CUPS服务或重新启动计算机应该可以解决“添加打印机”问题。请注意,由于自动发现功能已被禁用,您需要手动添加打印机。
CUPS参考文档:https://www.systutorials.com/docs/linux/man/5-cups-browsed.conf/
Rich
/etc/cups/cups-browsed.conf
。 - gitaarikgsettings set org.gnome.desktop.notifications.application:/org/gnome/desktop/notifications/application/gnome-printers-panel/ enable false
- undefined# Finding the schemas of interest:
$ gsettings list-schemas | grep -i notif
# Listing the values to target:
$ gsettings list-recursively org.gnome.settings-daemon.plugins.print-notifications
# Changing the value:
$ gsettings set org.gnome.settings-daemon.plugins.print-notifications active false
来源 http://www.fedoraforum.org/forum/showthread.php?t=297053
不幸的是,尽管有短暂的暂停,我仍然收到OSD通知。
/etc/cups/cups-browsed.conf
并BrowseRemoteProtocols dnssd cups
BrowseRemoteProtocols cups
sudo systemctl restart cups
pkill gjs
以清除当前的通知,这样我就可以在我的展示模式VLC监视器上享受视频播放列表了。 - Sridhar Sarnobatsudo apt update
sudo apt install icc-profiles
sudo systemctl restart cups