|
hey, i love this compositor, i am using it daily, but obs capture screen not working, already install all the requirements xdg-desktop-portal-gnome, pipewire, set env etc. but option to capture screen pipewire is missing. what did i miss? |
Replies: 9 comments 14 replies
|
Hey, can you attach niri output? You need to start niri as a session (via systemd, or |
|
i installed gnome-shell, and then it works, but when gnome-shell deleted, it's not work |
|
This was the important part for me (no systemd):
Don't
I believe the only purpose of systemd-stuff in niri is just to "start pipewire before portal-gnome". Sad to see gentoo/guru doing this: No, actually it works perfectly fine without. |
|
I had the same issue, and the following worked for me: systemctl --user add-wants niri.service xdg-desktop-portal-gtk.service
systemctl --user add-wants niri.service xdg-desktop-portal-gnome.service
systemctl --user add-wants niri.service pipewire.service |
Fix: OBS "Screen Capture (PipeWire)" on NiriEnvironment: NixOS 25.05, Niri (niri-flake), OBS from nixpkgs (not Flatpak) Required Services
Note: Root Cause
Fix1. NixOS config — Set systemd.user.services.xdg-desktop-portal-wlr.environment = {
WAYLAND_DISPLAY = "wayland-1";
XDG_CURRENT_DESKTOP = "sway";
};
2. User config — Create ~/.config/xdg-desktop-portal/portals.conf:
[preferred]
default=gtk
org.freedesktop.impl.portal.ScreenCast=wlr
org.freedesktop.impl.portal.Screenshot=wlr
3. Restart:
systemctl --user restart xdg-desktop-portal xdg-desktop-portal-wlr
Verify
busctl --user introspect org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop | grep ScreenCast |
|
i switched back to gnome portal and now all is working (also discord screen sharing) |
|
In my case, I had to include environment {
// "Trick" OBS into believing that this a Gnome desktop for screen recording
// to work.
XDG_CURRENT_DESKTOP "niri:GNOME"
}With this, the Pipewire screen recording option appears in OBS. |
|
Hi, I have the same problem where OBS is not capturing the screen, but I’m on KaOS and the package xdg-desktop-portal-wlr is not available here. What alternative do I have? |
|
if someone stuck in this for some reason and gets a black screen when trying (this happened when I ran |

finally it worked! without gnome-shell, what i do is install xdg-desktop-wlr then start niri from tty with niri-session not niri --session, finally this compositor is complete for me, i use it as a daily driver, ditching hyprland for the scrolling tiles!!