News for hackers. Stuff that matters.
Re:Tell HN: Gnome on Wayland Is Amazing by INTPenis on Monday March 21, 2022 @04:27AM (#30751637)
I thought so too, first impression is very good. Unfortunately I couldn't keep using it because you can't screen share in MS Teams with Wayland, and most games don't work in Wayland either.

So it was back to X11. Until screen sharing works in more apps, and until Proton/Wine games work I'm sticking to X11 and I'm not complaining.

Re:Tell HN: Gnome on Wayland Is Amazing by oxplot on Monday March 21, 2022 @04:35AM (#30751683)
Have you tried Pipewire for screen sharing:

https://wiki.archlinux.org/title/PipeWire#WebRTC_screen_shar...

Re:Tell HN: Gnome on Wayland Is Amazing by yxhuvud on Monday March 21, 2022 @07:14AM (#30752645)
Doesn't help, Teams doesn't support pipewire yet.
Re:Tell HN: Gnome on Wayland Is Amazing by 0x38B on Monday March 21, 2022 @04:48AM (#30751772)
I use Sway (and therefore Wayland) for everything except gaming; for that I switch to i3 (X11) on TTY2. Works great for me.
Re:Tell HN: Gnome on Wayland Is Amazing by Fnoord on Monday March 21, 2022 @05:22AM (#30751960)
Back in the start of the century I used to run two X servers. One with a Linux desktop (tried various stuff) and one with Nvidia's proprietary kernel module, purely to play games, and have any crashes not lock up my whole machine. It worked beautifully. Eventually I switched to the red side, and I stayed there as much as possible.
Re:Tell HN: Gnome on Wayland Is Amazing by sobkas on Monday March 21, 2022 @10:06AM (#30754261)
I use Gnome+Wayland for gaming. I only had one problem for years that I used it. Something related to "Failed to initialize parser".
Re:Tell HN: Gnome on Wayland Is Amazing by kaba0 on Monday March 21, 2022 @05:28AM (#30751996)
You can if you use it from an up-to-date web browser (or if microsoft would use an up-to-date electron build as a base).
Re:Tell HN: Gnome on Wayland Is Amazing by enriquto on Monday March 21, 2022 @06:38AM (#30752419)
This is absurd. Why would the browser matter for such a basic system functionality as screenshoting?
Re:Tell HN: Gnome on Wayland Is Amazing by bonzini on Monday March 21, 2022 @07:13AM (#30752638)
Because screenshotting is very security sensitive.
Re:Tell HN: Gnome on Wayland Is Amazing by rjmunro on Monday March 21, 2022 @01:57PM (#30757467)
I don't think that's the problem. Browsers can do screenshotting correctly. MS Teams' Electron app can't. You can use the web version of teams in a browser to get around this issue.
Re:Tell HN: Gnome on Wayland Is Amazing by kaba0 on Monday March 21, 2022 @07:11AM (#30752616)
Because it is an electron app, built on top of a browser that doesn’t use the correct build flags?
Re:Tell HN: Gnome on Wayland Is Amazing by enriquto on Monday March 21, 2022 @07:26AM (#30752741)
But why does the nature of the program matter at all? If a program writes a file on my home directory, I can read that file with other programs, regardless of the build flags of the first program. Why isn't my screen just the same? A program writes pixels to it, then I use another program to read them.

Having the pixels of your screen be more "sacred" than the files on your $HOME is a disturbingly bizarre security model.

Re:Tell HN: Gnome on Wayland Is Amazing by kaba0 on Monday March 21, 2022 @08:24AM (#30753225)
Try writing to a file using linux kernel calls on windows — APIs matter.

Also, please have a look at here: https://news.ycombinator.com/item?id=30735099 This simply should not happen, any random executable having access to your $HOME is a terrible terrible practice.

Re:Tell HN: Gnome on Wayland Is Amazing by enriquto on Monday March 21, 2022 @08:32AM (#30753311)
> any random executable having access to your $HOME is a terrible terrible practice.

Running random executables is the only terrible practice here. If I run "cat" over a file on my $HOME, then I expect to see its contents, regardless of which program wrote the file. Similarly, if a program writes pixels on my screen, then I expect to be able to screenshot them.

Conversely, if I write a file in my $HOME, then I expect that other programs that I run will be able to read it. Similarly, if I write pixels on my screen, I should not be surprised that my other programs can read them.

Call me conspiracist, but this silly wayland security theater seems like a side of a multi-pronged attack to destroy the very principles of unix. First, screens; then, files. But you know what? You'll pry fopen and fread from my cold, dead hands!

Re:Tell HN: Gnome on Wayland Is Amazing by kaba0 on Monday March 21, 2022 @08:51AM (#30753497)
> Similarly, if a program writes pixels on my screen, then I expect to be able to screenshot them.

You can screenshot it. Zoom or whatever else can’t do so without calling the respective APIs with the respective security policy (which by default is: giving you a popup to allow the request)

Have you seen my linked thread? Ok, let’s say `cat` works on behalf of you. Does `apt`, `npm` etc also do what it does on behalf of you? The problem is not only third-party code, but third-party data — any bug in the program can hijack the whole program at which point it no longer works on your behalf.

Re:Tell HN: Gnome on Wayland Is Amazing by jessaustin on Monday March 21, 2022 @08:03AM (#30753055)
It isn't necessary that any particular program have access to $HOME, is it? That's often the most straightforward way for things to work, but anything can be run in a chroot jail or simply as another user.