mattermost / desktop

Mattermost Desktop application for Windows, Mac and Linux
Apache License 2.0
2.03k stars 829 forks source link

[Bug]: Screen sharing needs multiple confirmations #2817

Open apollo13 opened 1 year ago

apollo13 commented 1 year ago

Before you file a bug report

Mattermost Desktop Version

Version 5.5.0-rc.1 commit: f7b3a64

Operating System

Fedora 38

Mattermost Server Version

7.10.2

Steps to reproduce

Screenshot from 2023-09-02 13-11-43 Screenshot from 2023-09-02 13-11-32

Expected behavior

The second sharing screen (the white one from mattermost) should not show up. It doesn't show up when accessing the app in a browser directly, there it only shows the first dialog.

Observed behavior

After selecting the window to share, mattermost desktop shows yet another custom sharing dialog.

Log Output

Additional Information

No response

streamer45 commented 1 year ago

I assume this is the result of updating Electron. The screen permissions flow may need a review however this should only happen on Wayland setups which are likely not 100% supported.

apollo13 commented 1 year ago

Yes this is only on wayland and it at least is finally in a state where it is usable and only an UX issue. Since wayland is the default on at least Fedora and Ubuntu nowadays it would probably make sense to support it explicitly instead of focusing on X11 as primary target.

streamer45 commented 1 year ago

Agreed. When I am talking about support I really mean from the Electron side. There's only so much we can do on this one. Now that the update happened we can plan ways to make it feel a bit more native from the application.

apollo13 commented 1 year ago

From what I can gather the electron side of things is finally good! Before it crashed #2694 ;) But I just realized that I am in the wrong repo with this report as that might be fixable solely in the mattermost calls plugin.

streamer45 commented 1 year ago

That's good to know. I haven't looked in this yet but I think we'd need changes on this side as well because at the very least we need to understand what system we are on since this issue only exists on Wayland as far as I can tell.

devinbinnie commented 10 months ago

@streamer45 Any progress on this? I seem to recall Electron having a fix for this but I don't really remember.

streamer45 commented 10 months ago

I think we are still stuck at https://github.com/electron/electron/issues/37524 although I haven't really had a chance to test on Wayland still to see if there could be workarounds. Our internal ticket is https://mattermost.atlassian.net/browse/MM-53522