maltejur / discord-screenaudio

A custom discord client that supports streaming with audio on Linux.
1.1k stars 34 forks source link

Screenshare not working on Sway (Wayland) #81

Open ardishko opened 1 year ago

ardishko commented 1 year ago

When I screenshare, it shows a black screen. not sure about the audio itself but It's just black.

Wa1t5 commented 1 year ago

@ardishco-the-great Screenshare with sway is working fine here, do you have xdg-desktop-portal-wlr installed?, try starting with this command: dbus-run-session discord-screenaudio

ardishko commented 1 year ago

that doesn't work but it stops me from screensharing once I start it however It might be DBus issue. Dunst doesn't work when I do dunst notify-send and says it's a DBus issue.

Also yes I have xdg-desktop-portal-wlr installed via the community repo for arch

Wa1t5 commented 1 year ago

@ardishco-the-great Have you set XDG_CURRENT_DESKTOP=sway ?

ardishko commented 1 year ago

I ran export XDG_CURRENT_DESKTOP=sway before starting sway and It's still a black screen.

ChrisJAllan commented 1 year ago

Same problem, looking through console output finds this error:

/bin/sh: line 1: slurp -f %o -o: command not found
2023/04/01 12:20:09 [ERROR] - wlroots: output chooser "slurp -f %o -o" failed
2023/04/01 12:20:09 [ERROR] - wlroots: no output found

slurp is installed and can be run on its own, so probably a PATH issue? Or inappropriate quoting? Will start digging up the code now.

EDIT: Removing the quotes in ~/.config/xdg-desktop-portal-wlr/config and launching with dbus-run-session discord-screenaudio seems to have fixed it, although the window/display selector is delayed and shows up after a few seconds of blank screen sharing.

ardishko commented 1 year ago

I have no config at .config/xdg-desktop-portal-wlr/config, it's just blank.

kitsugo commented 1 year ago

Running it with dbus-run-session discord-screenaudio helps the issue of black screen. However, I am only able to stream the entire screen and cannot select a singular application only. I'm also running this on Sway.