niri无法使用钉钉桌面共享

如题 哥哥们 我的钉钉无法使用桌面共享功能,obs录屏可以正常使用

potuo@arch:pts/2->/home/potuo (0)
> paru -Qs xdg
local/libcanberra 1:0.30+r2+gc0620e4-6
    A small and lightweight implementation of the XDG Sound Theme Specification
local/libxdg-basedir 1.2.3-2
    An implementation of the XDG Base Directory specification
local/xdg-dbus-proxy 0.1.6-1
    Filtering proxy for D-Bus connections
local/xdg-desktop-portal 1.20.3-2
    Desktop integration portals for sandboxed apps
local/xdg-desktop-portal-gnome 49.0-1 (gnome)
    Backend implementation for xdg-desktop-portal for the GNOME desktop
    environment
local/xdg-desktop-portal-gtk 1.15.3-1
    A backend implementation for xdg-desktop-portal using GTK
local/xdg-desktop-portal-hyprland 1.3.11-3
    xdg-desktop-portal backend for hyprland
local/xdg-desktop-portal-wlr-git 0.8.1.r1.ga28c5c7-1
    xdg-desktop-portal backend for wlroots
local/xdg-user-dirs 0.19-2
    Manage user directories like ~/Desktop and ~/Music
local/xdg-user-dirs-gtk 0.16-1 (gnome)
    Creates user dirs and asks to relocalize them
local/xdg-utils 1.2.1-2
    Command line tools that assist applications with a variety of desktop
    integration tasks
potuo@arch:pts/2->/home/potuo (3)
> systemctl status --user xdg-desktop-portal-gnome.service
● xdg-desktop-portal-gnome.service - Portal service (GNOME implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-gnome.service; sta>
     Active: active (running) since Wed 2025-12-24 22:36:42 CST; 3h 2min ago
 Invocation: f3b7b3d87e18486eafdaae4f6b1729b7
   Main PID: 1061 (xdg-desktop-por)
      Tasks: 11 (limit: 15260)
     Memory: 118.4M (peak: 119.5M)
        CPU: 838ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/xdg-desktop>
             └─1061 /usr/lib/xdg-desktop-portal-gnome

Dec 24 22:36:42 arch systemd[840]: Started Portal service (GNOME implementation).
Dec 24 22:37:40 arch xdg-desktop-portal-gnome[1061]: Failed to associate portal >
Dec 24 22:37:40 arch xdg-desktop-portal-gnome[1061]: vkAcquireNextImageKHR(): A >
Dec 24 22:39:36 arch xdg-desktop-portal-gnome[1061]: Failed to associate portal >
Dec 24 22:39:36 arch xdg-desktop-portal-gnome[1061]: vkAcquireNextImageKHR(): A >
Dec 24 22:41:08 arch xdg-desktop-portal-gnome[1061]: Failed to associate portal >
Dec 24 22:41:08 arch xdg-desktop-portal-gnome[1061]: vkAcquireNextImageKHR(): A >
Dec 25 01:30:00 arch xdg-desktop-portal-gnome[1061]: Failed to associate portal >
Dec 25 01:31:14 arch xdg-desktop-portal-gnome[1061]: Failed to associate portal >
Dec 25 01:33:40 arch xdg-desktop-portal-gnome[1061]: Failed to associate portal >
lines 1-21/21 (END)

钉钉桌面共享只能识别到鼠标,剩余背景纯黑,而且鼠标移动在共享页面异常卡顿,并尝试过github:wayland下钉钉会议屏幕共享实现也无效

1 Like

你是在用niri吗,在别的niri的话题下看到你了 :face_with_monocle:

有试过再搭配上https://github.com/YaLTeR/niri/pull/1791 这个补丁自己编译niri吗

我尝试一下 谢谢

黑色背景+只能看到鼠标,用楼上发的补丁重新编译了niri解决了这个问题,但是测试下来好像只能用wemeet-wayland-screenshare这个版本的腾讯会议共享屏幕,官方最新版测试了下是白屏,仍然无法共享。

我用的钉钉 :smiling_face_with_tear:

老哥 尝试了一下还是不行,依旧只有鼠标+黑屏 :smiling_face_with_tear:

我用了 https://github.com/lzl200110/dingtalk-wayland-screenshare 之后可以共享屏幕啊,会不会是portal的问题,niri上用gnome的portal可能需要按wiki里的 3.1强制桌面环境配置一下? https://wiki.archlinux.org.cn/title/XDG_Desktop_Portal ,或者说有尝试点一下共享按钮吗,确认共享前你截图的这个界面确实是黑的(

腾讯会议的话试试flatpak的?我这里能正常共享,版本也新

大哥nb

但是现在obs不能录屏了 :smiling_face_with_tear:

以及使用noctalia的bar自带的录屏也无法使用了 :smiling_face_with_tear:

然后哥哥 重启后就无效了 :smiling_face_with_tear: ,看过xdg…gnome和xdg…portal服务运行都是正常的

可能跟这个有关系?, https://yalter.github.io/niri/Important-Software.html

图片

我这里没有niri-wayland.service这个服务,试过用 niri-session

这个服务是手动搓的,但是还是以运行niri-session来的

现在我使用obs的Screencopy Source可以正常录屏和显示,但是使用Pipewire无法录屏

image