You are not logged in.

#1 2025-02-10 20:42:09

killertofus
Member
Registered: 2025-02-10
Posts: 113

[solved] using dwl, obs has a black screen

using dwl I can't record using obs it won't let me pick my desktop to record

using dwl 0.7

with obs-studio 31.0.1-2

pactl info

Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 103
Tile Size: 65472
User Name: killertofus
Host Name: killertofus
Server Name: pulseaudio
Server Version: 17.0-43-g3e2bb
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: bluez_sink.23_11_07_B3_73_F2.a2dp_sink
Default Source: bluez_sink.23_11_07_B3_73_F2.a2dp_sink.monitor
Cookie: 16bb:a712

pipewire is installed

gst-plugin-pipewire 1:1.2.7-1
libpipewire 1:1.2.7-1
pipewire 1:1.2.7-1
pipewire-session-manager 1:1.2.7-1
pipewire-v4l2 1:1.2.7-1
qemu-audio-pipewire 9.2.0-2

alongside pulse

lib32-libpulse 17.0+r43+g3e2bb8a1e-1
libpulse 17.0+r43+g3e2bb8a1e-1
pulseaudio 17.0+r43+g3e2bb8a1e-1
pulseaudio-bluetooth 17.0+r43+g3e2bb8a1e-1

wlroots/xdg portal is installed

wlroots 0.18.2-1
xdg-desktop-portal-wlr 0.7.1-1

with wayland packages also installed

lib32-wayland 1.23.1-1
qt5-wayland 5.15.16+kde+r59-3
qt6-wayland 6.8.2-1
rofi-wayland 1.7.8.1-1
wayland 1.23.1-1
wayland-protocols 1.40-1
xorg-xwayland 24.1.5-1

printenv 


zshrc

Last edited by killertofus (2025-03-23 20:15:00)

Offline

#2 2025-02-22 03:07:32

killertofus
Member
Registered: 2025-02-10
Posts: 113

Re: [solved] using dwl, obs has a black screen

Update: using flatpak does not work as well

Offline

#3 2025-02-22 14:01:55

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,960

Re: [solved] using dwl, obs has a black screen

Is xdg-desktop-portal-wlr even running? This could also just be a bug/missing feature of dwl, have you tried reporting/looking for reported bugs?

Offline

#4 2025-02-22 19:20:01

killertofus
Member
Registered: 2025-02-10
Posts: 113

Re: [solved] using dwl, obs has a black screen

asking around, it seems that they could successfully use obs in dwl

looking at the issues page it shows that it has non of my issues described



with https://wiki.archlinux.org/title/XDG_De … _not_start


setting my import environment via

 systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP 

and

 dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=compositor_name 

systemctl --user show-environment shows

HOME=/home/killertofus
LANG=en_US.UTF-8
LOGNAME=killertofus
MAIL=/var/spool/mail/killertofus
PATH=/usr/local/bin:/usr/bin
SHELL=/usr/bin/zsh
USER=killertofus
XDG_RUNTIME_DIR=/run/user/1000
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
SSH_AUTH_SOCK=/run/user/1000/gcr/ssh
WAYLAND_DISPLAY=wayland-0
XDG_CURRENT_DESKTOP=wlroots
 

which is set via my .zshrc

also via my startup.sh

dwl -s "exec dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP & 
waybar & 
flameshot & 
swww-daemon & 
blueman-manager & 
/opt/piavpn/bin/pia-client %u & 
nm-applet & 
dunst & 
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &"  

Last edited by killertofus (2025-02-23 03:45:28)

Offline

#5 2025-03-23 03:45:47

killertofus
Member
Registered: 2025-02-10
Posts: 113

Re: [solved] using dwl, obs has a black screen

making xdg-desktop-portal/portals.conf with

[preferred]
default=gtk
org.freedesktop.impl.portal.Screenshot=wlr
org.freedesktop.impl.portal.ScreenCast=wlr

works
you also need xdg-desktop-portal with xdg-desktop-portal-wlr and xdg-desktop-portal-gtk

Last edited by killertofus (2025-03-23 20:16:58)

Offline

Board footer

Powered by FluxBB