Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Screenshare not working on Sway (Wayland) #81

Open
raidenovich opened this issue Dec 6, 2022 · 7 comments
Open

Screenshare not working on Sway (Wayland) #81

raidenovich opened this issue Dec 6, 2022 · 7 comments

Comments

@raidenovich
Copy link

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

@Wa1t5
Copy link

Wa1t5 commented Dec 7, 2022

@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

@raidenovich
Copy link
Author

raidenovich commented Dec 7, 2022

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
Copy link

Wa1t5 commented Dec 7, 2022

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

@raidenovich
Copy link
Author

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

@ChrisJAllan
Copy link

ChrisJAllan commented Apr 1, 2023

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.

@raidenovich
Copy link
Author

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

@kitsugo
Copy link

kitsugo commented May 1, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants