question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebCord 3.8.2 Flatpak broke Wayland screenshare portals

See original GitHub issue

Aknowledgements

  • I have checked that there’s no other issue describing the same or similar problem that I currently have, regardless if it has been closed or open.

  • I can confirm that this is not an issue with the Discord website, but it is a problem specific to the WebCord itself. I have tested if this bug occurs on Chromium/Chrome or any other Chromium-based browser that uses unpatched/upstream Chromium engine.

  • I have tried running the build from the master branch and it does not have any fixes implemented according to my issue.

  • My issue describes one of the unstable and/or not fully implemented features.

  • I have found a workaround to mitigate or temporarily fix this issue in affected releases (please write it in Additional context section below).

Operating System / Platform

🐧️ Linux

Operating system architecture

x64 (64-bit Intel/AMD)

Electron version

v20.1.3

Application version

3.8.2

Bug description

After updating to v3.8.2 WebCord does not open the usual Wayland screen / app selection window to choose which screen or app to screenshare with others.

Additional context

A temporary solution is to downgrade WebCord by using the command

sudo flatpak update --commit=1d6c868bb18068fac521273dd7afedbd5aeeed5f1d4445fcff5ee191b5a6534e io.github.spacingbat3.webcord

and then masking it to prevent an auto update

flatpak mask io.github.spacingbat3.webcord

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
SpacingBat3commented, Sep 12, 2022

@epetousis This patch doesn’t fix the bug, it behaves the same as reverting MPRIS [commit]. I’ll do a proper fix once I’ll be able to and release patched WebCord version.

0reactions
epetousiscommented, Sep 12, 2022

If anyone happens to build from source and is looking for a quick-fix without rolling back, 4e1716c blocks extra CLI feature arguments, and as a result, reverts flags such as --enable-features=UseOzonePlatform and --enable-features=WaylandWindowDecorations, as well as --enable-features=WebRTCPipeWireCapturer, all of which are enabled by default in WebCord. I fixed it with the following patch, but wasn’t sure if this defeated the purpose of the workaround, so haven’t submitted a pull request (but I can if @SpacingBat3 prefers).

diff --git a/sources/code/common/main.ts b/sources/code/common/main.ts
index 0486f07..8082042 100644
--- a/sources/code/common/main.ts
+++ b/sources/code/common/main.ts
@@ -303,7 +303,7 @@ let overwriteMain: (() => unknown) | undefined;
       if(!enabledFeatures.includes(feature)) {
         const disabledFeatures = app.commandLine.getSwitchValue("disable-features");
         if(disabledFeatures === "") {
-          app.commandLine.appendSwitch("disable-features",enabledFeatures);
+          app.commandLine.appendSwitch("disable-features",disabledFeatures);
         } else {
           app.commandLine.appendSwitch("disable-features",disabledFeatures+","+feature);
         }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · SpacingBat3/WebCord - GitHub
Segfault on Screen Share bug Something isn't working upstream Issue with WebCord's depencencies Wayland Issues specific to Wayland, likely caused by lack of ......
Read more >
Wayland screen sharing broken with GNOME 41 on Fedora 35
It's not a bug in xdg-desktop-portal-wlr, so I'm not going to create a pull request to add code that does nothing (if the...
Read more >
Wayland Screensharing broken in Ubuntu 21.10
Everything run via flatpak still has broken screensharing, Firefox from deb package and Google Chrome via deb package work fine with the ...
Read more >
If you want to use Discord under Wayland session ... - Reddit
Master, tell me what to do if Webcord is from flatpak ... and enable "Wayland windowing system" on Discord to have screen sharing...
Read more >
1806916 – Firefox fails to show screensharing(pipewire) portal
Have a wayland session running, with screensharing enabled in ... rpm and flatpak, for the first time I noticed that the portal dialog...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found