-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Wayland & Screen-sharing #32
Comments
We are on the latest released version of Could you please specify what version of Ferdium you are using? What OS? And which service does not handle screensharing? For eg, I'm using the latest Ferdium (6.0.0-nightly.9) and I can use screensharing within the MS Teams Service without any issues. |
If you're using ferdium outside of flatpack, you should be able to enable wayland support with passing the
flags. Note that there's a known electron bug that might prevent you from maximizing the window. Nevertheless, this should run ferdi with wayland, also giving access to screensharing through pipewire. If this doesn't work, you could still try starting apps with X11 temporarily for sharing (e.g., with It should in principle be possible to do this also with flatpak (see, e.g., signal desktop) using the Unfortunately, the But hopefully, in the future, electron will ship with wayland enabled by default, so you wouldn't need the flags. |
@kris7t I'm using these flags: Note: maximizing works for me with nightly 10 and Linux 5.17 |
I think maximizing depends on the desktop environment you use, it works under sway or kde where the window manager draws the window decorations, but it won't (according to the electron bug tracker) work on gnome where the client is supposed to draw them. |
I forgot to specify: I'm on gnome 42. Some software which is based on Electron works, as Ferdium, while for example slack 4.25 is not going full screen |
Interesting. I guess electron might have fixed that bug without actually closing it? 🤔 |
Nevermind, bug is still there, it was only that it was ignoring the flags and using xwayland. My bad |
I am using Ferdium on archlinux with River WM. When using Ferdi, I get screensharing working with MS Teams using: edit: when I use MS Teams in chromium with these options, screensharing works also. |
Can you try it with
? I think multiple |
No, this does not work either. |
This might also be affected by electron/electron#31588, unfortunately. |
Can you try with nightly.16 (after it finishes building)? #61 just got merged, and hopefully it has fixed this issue, too. |
I will do some tests this weekend, as I use X11 for most of my work, I'll need to switch to Wayland first. According to electron/electron#31588 you need to pass the following switch to the |
I tested nightly.16. I can select the screen to share, which is a step further, but when I select the screen, I get a coredump (seg fault). edit: backtrace ferdium_bt.txt |
Is there something I can do to debug this? |
hi
This code works fine in old ubuntu versions (18,20) I have added this issue in separate ticket. Any solutions ? Thank you in advance |
this is likely an electron issue, so you'll probably have better luck debugging this at their repo. maybe the issue linked above is related |
screen sharing works now without crashing in 6.0.0-nightly.58 (probably due to #221). |
If we can have 1 more confirmation, then we can close this ticket! |
It also works for me (albeit with quite high CPU usage, but that's maybe just due to the sway compositor) Edit: yeah, making |
--ozone-platform=wayland --enabledesktopCapturer.getSources({ types: ['screen'] }).then( sources => { |
Hi, this did not work for me out of the box for ferdium 6.0.0-nightly.100 I had to edit after a restart this works. But It seems like it should have worked without that too? |
For me, the preview of the Entire Screen also does not show, but screen sharing works. I have to select the screen two times though. |
Thats a known bug with the xdg-portal and not unique to ferdium. How do you start it ? |
Yes, the participants can see my screen. I start with
I have ferdium-bin 6.2.0-1 installed from aur. No flatpack. I do have river, wlroots based, so I have a different xdg-desktop-portal. But since it seems to work in chromium, I doubt that this is the issue. Edit: I just did a meeting with myself on Teams (with laptop and phone) and it does work. |
I guess thats the Problem then. |
6.2.1-nightly18 doesnt work either |
Same issue on Fedora 36, Wayland and Gnome 42.4 |
After quite a long time of not testing this, I've decided to give it another try myself. Just like @Crashdummyy, I can share screen in MS Teams in Ferdium (it works fine in Jitsi using the desktop client too), but I do need to start Ferdium with the parameters:
I'm using the AUR build under Arch Linux (btw), with Gnome 43.0. Interestingly however, is with those command-line parameters listed above, Ferdium starts just fine, but does not have a window bar in Gnome. Without those parameter, the window bar is there (but screen sharing does not work). Any idea why the window bar is missing? There is no maximise and minimise button, but Super+Up and Super+Down do work fine to manipulate the window size. |
I just performed some tests again end... |
Note to self: the missing window decorator is a known Electron issue with Wayland. Check this commit for a potential fix. |
unfortunately the repo has been set to private or deleted. Do you have any hints for me what the fix for missing window decorations is? |
From the top of my head, adding the following parameters makes it work in Gnome under Wayland: |
For completeness, one can find the above mentioned commit here: The params set there are just: |
Preflight Checklist
Problem Description
Screen sharing is an essential part of modern online communication, and recently I noticed it working within Chromium, so I believe it can here too?
Proposed Solution
Implement screen-share support on Wayland
Alternatives Considered
n/a
Additional Information
No response
The text was updated successfully, but these errors were encountered: