![GNOME 网络显示错误](https://linux22.com/image/942233/GNOME%20%E7%BD%91%E7%BB%9C%E6%98%BE%E7%A4%BA%E9%94%99%E8%AF%AF.png)
运行 GNOME 网络显示器时出现以下错误。如能提供任何帮助,我将不胜感激。我正在运行全新安装的 Ubuntu 20.04。
Gtk-Message: 18:20:32.421: Failed to load module "canberra-gtk-module"
Gtk-Message: 18:20:32.422: Failed to load module "canberra-gtk-module"
** (gnome-network-displays:2): WARNING **: 18:20:33.036: Error calling DBus method during Screencast portal initialization: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop
** (gnome-network-displays:2): WARNING **: 18:20:33.036: Error initing screencast portal: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop
** (gnome-network-displays:2): WARNING **: 18:20:33.036: Screencasting portal is unavailable! It is required to select the monitor to stream!
** (gnome-network-displays:2): WARNING **: 18:20:33.036: Falling back to X11! You need to fix your setup to avoid issues (XDG Portals and/or mutter screencasting support)!
** (gnome-network-displays:2): WARNING **: 18:20:53.666: Could not start P2P find: GDBus.Error:org.freedesktop.NetworkManager.Device.NotActive: WPA Supplicant management interface is currently unavailable.
答案1
包裹搜索显示org.freedesktop.portal.ScreenCast包含在xdg-desktop-portal-dev
包裹内。
您必须尝试通过以下方式安装它
sudo apt-get install xdg-desktop-portal-dev
然后重新启动并再次检查屏幕录制功能。