flathub / com.discordapp.Discord

https://flathub.org/apps/details/com.discordapp.Discord
124 stars 41 forks source link

Screen sharing broken since 0.0.44 #380

Open aleasto opened 6 months ago

aleasto commented 6 months ago

At least in the XWayland session, screen sharing stopped working since updating to 0.0.44, and reverting back to 0.0.43 works. The screen share never starts, showing the two spinning dots indefinitely. Both when sharing other X11 apps, and when using xwaylandvideobridge.

JulianTurner commented 6 months ago

Same problem here

DaGammla commented 6 months ago

Same problem here. Using the zypper package, it still works on wayland for me on the newest version, so this is a Flatpak problem. Has anyone tried some whether there are some permissions that might need to be set?

zqpvr commented 5 months ago

same problem

sebastian-philipp commented 5 months ago

same here. Also wayland native doesn't allow me to share my screen.

sebastian-philipp commented 5 months ago

still cannot share wit 0.0.46

sebastian-philipp commented 5 months ago

workaround: Got screen sharing working with https://github.com/flathub/io.github.spacingbat3.webcord

DaGammla commented 5 months ago

Something Changed with the newest update. Maybe Discord is now actively working on full wayland support. Now, when you try to screenshare, it tries to use pipewire (It opens the selection dialog) but it still fails to actually work

zqpvr commented 5 months ago

Something Changed with the newest update. Maybe Discord is not actively working on full wayland support. Now, when you try to screenshare, it tries to use pipewire (It opens the selection dialog) but it still fails to actually work

Yeah I seen something did change, It doesn't find any other windows or anything. Does Xwayland work?

DaGammla commented 5 months ago

Discord behaves differently depending if you allow it to only use X11 or X11 and Wayland in Flatseal. I tried both, and both do not work. (For me it does not even start, if I only allow Wayland). In both cases the window you pick in the Pipewire dialog shows up in the screen share preview in Discord but it won't screenshare. The Pipewire dialog also keeps reopening after selecting a screen.

zqpvr commented 5 months ago

Yeah, I also have that. but no screens show up, not on the xwayland bridge share though

rytrix commented 5 months ago

Still doesn't work as of 0.0.49

farribeiro commented 5 months ago

Have you ever stopped to think that this is getting tiring.

sebastian-philipp commented 4 months ago

still broken. Now the xwaylandvideobridge portal also crashes in Webcord and Vesktop.

KarlsonxD commented 3 months ago

are there any insights what changed in this udpate? can't find the commit id to downgrade the flatpak image, does anybody have a tip?

deddroid commented 3 months ago

still broken:

benjamin051000 commented 2 months ago

Vesktop has been working for me on openSUSE TW / KDE Wayland with xwaylandvideobridge.

devurandom commented 2 months ago

Vesktop has been working for me on openSUSE TW / KDE Wayland with xwaylandvideobridge.

I can confirm: The Vesktop Flatpak works really well for streaming. I streamed a game run with Proton in the Steam Flatpak without any issues (apart from the "select window" dialogue popping up twice instead of just once).

crimsonfall commented 2 months ago

As a workaround, if you have Flatseal, you can scroll down to "Environment" and under "Variables" add a new variable and put XDG_SESSION_TYPE=x11. This has personally worked for me in putting the screen share functionality back into the Discord Flatpak.

This seems to be problem with Discord itself as they're apparently experimenting with Wayland support, but it's pretty botched at the moment. I noticed that this Reddit post started popping up at around the same time this became an issue (https://www.reddit.com/r/linux_gaming/comments/1bp5k66/discord_finally_tries_native_wayland_screen/). Again, this is just my theory.

asreich commented 1 month ago

As a workaround, if you have Flatseal, you can scroll down to "Environment" and under "Variables" add a new variable and put XDG_SESSION_TYPE=x11. This has personally worked for me in putting the screen share functionality back into the Discord Flatpak.

This seems to be problem with Discord itself as they're apparently experimenting with Wayland support, but it's pretty botched at the moment. I noticed that this Reddit post started popping up at around the same time this became an issue (https://www.reddit.com/r/linux_gaming/comments/1bp5k66/discord_finally_tries_native_wayland_screen/). Again, this is just my theory.

You're a legend, this workaround worked for me. Running Clear Linux OS 41880 with Wayland Linux 6.9.3-1439.native, Flatpak Discord 0.0.60.

Mantissa-23 commented 1 month ago

As a workaround, if you have Flatseal, you can scroll down to "Environment" and under "Variables" add a new variable and put XDG_SESSION_TYPE=x11. This has personally worked for me in putting the screen share functionality back into the Discord Flatpak.

This seems to be problem with Discord itself as they're apparently experimenting with Wayland support, but it's pretty botched at the moment. I noticed that this Reddit post started popping up at around the same time this became an issue (https://www.reddit.com/r/linux_gaming/comments/1bp5k66/discord_finally_tries_native_wayland_screen/). Again, this is just my theory.

This also worked for my wife and I, latest Bazzite Stable and Fedora 40 Workstation respectively.

Siiiidox commented 1 day ago

Using a fresh Fedora Workstation 40 setup, this works for sharing applications. However, when I try to share my screen, everything is black and only my mouse cursor is visible.