News for hackers. Stuff that matters.
Re:I'm tired of this anti-Wayland horseshit by silisili on Tuesday February 02, 2021 @10:44AM (#26002281)
Agreed. Tried Wayland again last year. Screen sharing in Electron doesn't work, so can't share screen in Slack. Googled, known issue.

I don't care how much better Wayland is...if it can't do something I'm used to and need, it's going in the trash. I don't have time or interest to read mailing lists and bug trackers to know when it's fixed.

Re:I'm tired of this anti-Wayland horseshit by vetinari on Tuesday February 02, 2021 @12:23PM (#26003747)
So Slack didn't bother building with `rtc_use_pipewi­re=true` and that's Wayland's problem?

Complain to Slack.

Re:I'm tired of this anti-Wayland horseshit by zamadatix on Tuesday February 02, 2021 @01:08PM (#26004394)
Pipewire is still 0.x as of today, let alone when they last tried it, so I don't think anybody should be going to Slack like they were too lazy to build it "right". Besides even if it was built with that the screensharing via pipewire isn't at feature parity with normal screen/monitor/window level sharing so it's not a 1:1 drop in quite yet.

Wayland said screen sharing is something to be solved outside of Wayland itself. That solution is still early and not complete. It's not anybody's problem, it's just how things are. It'll get fixed eventually, in the meantime X11 still runs fine for most users and in 6-12 months switching to Wayland should have fewer tradeoffs. Until then Wayland is missing some use cases X11 easy fulfills. Unfortunately X11 is also missing many use cases Wayland fills. As a result we should expect different users to be better served by different answers about how ready a Wayland environment is for them and both to be equally correct.

Re:I'm tired of this anti-Wayland horseshit by vetinari on Tuesday February 02, 2021 @02:27PM (#26005395)
Yes, Pipewire is at 0.3 today; but that's not a problem. Pipewire has the ambition to replace Pulseaudio, Jack and provide APIs for several other subject, not just screen grabbing. That's the part that is missing toward 1.0.

Screengrabbing during the last year was even better than what X11 could provide, including the ability for the user to limit the grabbing to display or window. That's something that user cannot have under control in X11.

Pipewire is also not limited to Wayland; it will work with X11 too, so the X11 users won't be abandoned just because there's Wayland support too. Firefox doesn't seem to have problem with it, Chrome has it behind flags. For apps with fast moving releases as these, I don't see any problem with them supporting 0.3 release and when/if there is API breaks, updating it.

Beats not supporting screen sharing under Wayland at all.

Re:I'm tired of this anti-Wayland horseshit by zamadatix on Tuesday February 02, 2021 @02:46PM (#26005631)
Pipewire is definitely the right path when things are complete but right now you have to build with a beta version of Electron with build flags and rutime flags to use a 0.x version of Pipewire and when you do it currently only presents the option to capture the full screen.

I.e. it's not that the tech stack or architecure is the wrong it's simply not done yet and not done to the point it's a bit silly to blame Slack for not enabling it.

It's also not the fault of wayland/pipewire/chromium/electron/slack for not all simultaneously releasing working screen sharing but it is a mistake to say you can switch from X11 to <Wayland stack> and not worry about screen sharing.

I use pipewire for screen sharing, I like it, but its not a fully baked stack and won't be for some time yet.

Re:I'm tired of this anti-Wayland horseshit by vetinari on Tuesday February 02, 2021 @03:15PM (#26006005)
> only presents the option to capture the full screen

Are you sure? I'm pretty sure I had two tabs, one for picking displays and other for picking windows. Pretty much like this: https://bug1675764.bmoattachments.org/attachment.cgi?id=9186...

Re:I'm tired of this anti-Wayland horseshit by zamadatix on Tuesday February 02, 2021 @04:23PM (#26006903)
Looking deeper into it (been meaning to anyways) it seems to be the typical Wayland compositor specific issue, and ironically I'm using ddevault's compositor sway. Pipewire doesn't seem to care what you send it but your second window looks to be part of xdg-desktop-portal-gtk if I'm not mistaken. Since I'm using sway/wlroots I need to use xdg-desktop-portal-wlr instead. In the FAQ for this package:

"Will this let me share individual windows?

No, only entire outputs. It would take significant work in wlroots, and likely a new protocol, to make this possible. A second rendering pass would be required, which would significantly reduce wlroots performance, so this may not be implemented any time soon (or ever).

Will this let me share all of my outputs/displays at once?

Not yet, no. It will likely never create a single stream that combines all of your outputs, but once we implement better output selection, there is no reason xdpw cannot create multiple simultaneous streams of different outputs."

So it looks like I'm shit out of luck for quite a while on sway/wlroots. Looks like Gnome figured it out. Not sure about KDE.

Re:I'm tired of this anti-Wayland horseshit by majewsky on Tuesday February 02, 2021 @04:50PM (#26007326)
For your reference, these are the issues to subscribe to if you're interested in following the discussion as it's taking place:

https://github.com/emersion/xdg-desktop-portal-wlr/issues/12

https://github.com/swaywm/wlr-protocols/issues/93

Re:I'm tired of this anti-Wayland horseshit by vetinari on Tuesday February 02, 2021 @04:32PM (#26007048)
Ah, that explains it. Yes, I'm running Gnome and xdg-desktop-portal-gtk.

Thanks for the constructive and informative discussion.

Re:I'm tired of this anti-Wayland horseshit by rcxdude on Tuesday February 02, 2021 @01:00PM (#26004280)
Support from popular apps absolutely is a problem for the platform. It might not be caused by them, but it is their problem. The user doesn't care who's fault it is, they're just going to go with the combination which works for them.
Re:I'm tired of this anti-Wayland horseshit by vetinari on Tuesday February 02, 2021 @02:17PM (#26005264)
While I agree, that support for popular apps is a problem for platform, it doesn't mean that the platform will freeze for every snowflake app.

Apple for example regularly uses pressure from users on app authors to drive improvements in their platform. I don't see why Linux distributions should flip backward to keep their platform static, to the detriment of their long term development.

Re:I'm tired of this anti-Wayland horseshit by utxaa on Tuesday February 02, 2021 @07:36PM (#26009139)
complaining won't help me join a meeting.
Re:I'm tired of this anti-Wayland horseshit by vetinari on Wednesday February 03, 2021 @06:46AM (#26012772)
You can join a meeting; you cannot share your desktop. You cannot share your desktop, because that software is buggy and without complaining, that bug will be never fixed.
Re:I'm tired of this anti-Wayland horseshit by utxaa on Wednesday February 03, 2021 @12:02PM (#26015782)
really? ... :/
Re:I'm tired of this anti-Wayland horseshit by away_throw on Tuesday February 02, 2021 @11:23AM (#26002893)
I believe that this is being fixed soon if you compile Electron with "Ozone" support. Otherwise, I use the current workaround of using OBS with a "virtual webcam" which allows me to stream OBS to a webcam and just use my webcam as the screenshare. Actually ends up working better than any screenshare utility that I've used.
Re:I'm tired of this anti-Wayland horseshit by axaxs on Tuesday February 02, 2021 @11:25AM (#26002933)
This doesn't seem as straightforward as 'click the screenshare button to share your screen', which is how it works in xorg mode.

Editing since I can't reply - I didn't mean to come across as rude, sorry for that. Just explaining that as a user, it doesn't work out of the box. Having to explain to users to do the above is not an ideal solution.

Re:I'm tired of this anti-Wayland horseshit by away_throw on Tuesday February 02, 2021 @11:30AM (#26003017)
That's true. Hopefully Ozone will be officially released in Chromium/Electron which will make this as simple as that. At least in Discord, XOrg screenshare always gave me trouble.
Re:I'm tired of this anti-Wayland horseshit by aeroevan on Tuesday February 02, 2021 @12:40PM (#26003983)
There's also pipewire which doesn't depend on ozone, but is optional I guess. What's even worse, slack doesn't allow sharing from chrome which just works for MS Teams via pipewire.
Re:I'm tired of this anti-Wayland horseshit by senko on Tuesday February 02, 2021 @11:33AM (#26003044)
... sounds like you should complain to Slack?