5 ms·
I still don't quite understand why Android and ChromeOS have seemingly good display systems on Linux with no drama or even any real identity to the display syst
by ianbicking 3y ago
I still don't quite understand why Android and ChromeOS have seemingly good display systems on Linux with no drama or even any real identity to the display system, while X11 and Wayland have been churning on this stuff for so many years and don't seem to be at the same level of quality.
I know I'm missing something... but I also suspect it's the sort of something that's worth missing.
- Gigachad 3y agoWayland works completely fine. The issues come from legacy applications and hardware vendors who refuse to work with it. Android solves these problems by telling software and firmware makers that they either get with the program or not have access to half the mobile phone market. As well as just saying no to all the absurd requirements like being able to stream the protocol over the internet or track exact XY inputs absolute to the screen outside of the apps own window. Desktop linux doesn't have this sway.
- phkahler 3y ago>> As well as just saying no to all the absurd requirements like being able to stream the protocol over the internet or track exact XY inputs absolute to the screen outside of the apps own window. Which is a security hole along with being able to read keystrokes meant for any app, grabbing pixels that aren't yours, etc... the features people complained were missing from Wayland for the longest time were often security issues that X could never solve by design. But hey, fuck security I want to run Xeyes!
- beanjuiceII 3y agoTimes my system was hacked via x or xeyes since I started using Linux in 95... zero
- charcircuit 3y agoIt is not just about hacking your system. It's also about programs being able to hack into your accounts by keylogging you or stealing passwords from your clipboard. If you use cryptocurrencies malware can replace addresses on your clipboard with similar looking addresses while it's completely hidden in the background. Desktop Linux's security is usually like swiss cheese, so if you haven't been hacked it has more to do with you not encountering malware than your system protecting against it.
- michaelmrose 3y agoGeneral purpose Linux distributions whether using Wayland or X don't meaningfully protect you from compromised software running on your system. Traditionally on all systems 99.9% of the game has always been and remains not installing malware or compromising your data or credentials. This means 99.9% of actual threats to your security remain the same. If you want actual isolation you need to run something like qubes which ironically actuality uses X
- Gigachad 3y agoWayland is simply one piece in the puzzle. Flatpak, PipeWire, etc are the fixing the other parts. Things are very slowly moving in the right direction though. Unfortunately most linux distros and users do not take security seriously unless it's in a server environment. Desktop linux is awfully far behind systems like MacOS.
- charcircuit 3y ago>Traditionally on all systems 99.9% of the game has always been and remains not installing malware or compromising your data or credentials. This is a doomer mindset that ignores the advances the rest of the industry has been making. There is a big difference from malware having to find a 0day in order to cause harm to the user and malware developers being able to do exactly what they want without even a permission dialog box showing up.
- michaelmrose 3y ago
- pjmlp 3y agoApparently you weren't on our university, being a victim on unwanted content when the teacher would be going to look at your screen.
- phkahler 3y ago>> Times my system was hacked via x or xeyes since I started using Linux in 95... zero Ummm right. The point wasn't that Xeyes is a security threat. It's that Xeyes is only possible because X is insecure by design, which is what allows the eyes to literally monitor what you're doing. Mouse, keystroke, screen grab. Hey go ahead and do your online banking with X. Just remember the real malware is headless, not literally displaying eyes to let you know it's watching.
- capableweb 3y agoSure, but there are also legitimate uses for things like that, otherwise people wouldn't want them. How you build screen-recorders for example without "grabbing pixels that aren't yours"? Clearly, something is missing here. Why not a permission system like browsers do? A little popup that asks "X is requesting access to your full screen" rather than this "convenience VS security" black and white view most people seem to take a stance at?
- Gigachad 3y agoThe answer is that these need to be special privileges controlled by the OS. Which is exactly how wayland manages it. Discord capturing the screen is a valid use case, but it should be approved by the DE and it should be possible to block this request. Currently the mainstream DEs just approve the request by default but in the future I can see a permissions dialog asking the user if they want to allow access to screen recording, and maybe a small icon in the top bar to show when recordings are happening.
- Bu9818 3y agoYup, or with your own scripts managing bwrap and security-context if not using a DE/Flatpak.
- roenxi 3y agoThat answer sucks so much that after nearly 15 years of Wayland evangelism KDE e.V. Directors are writing blog posts with "Wait, that sounds like it sucks" as a heading and talking about how the issues have been resolved to the point where it is just "ready enough for Plasma and KDE apps", with some reasonable paraphrasing. That is not a history to be proud of, for all that even Wayland is a big step up from X and we're all grateful for the efforts these people go to. This idea that screenshots require special OS-level privileges has been tested and, in practice, does not work. Literally nobody wants compositor-specific screenshot applications. It should have been addressed in the Wayland standards in the early drafts. Fair enough unrestricted access to any pixel is a security problem. But banning all access to pixels other programs control was an unworkable position that, in hindsight, didn't work. Telling people that the process that merges all the pixels together needs special OS-level support for reporting on what the merged output look like is just not sane. Something went wrong in the design process.
- deleted 3y ago[deleted]
- mattpallissard 3y ago> Wayland works completely fine. Agreed. What's the missing feature? Screen sharing? Remote sessions? Overlapping displays (doesn't work in Android BTW)? We've had all of these for years. Even fractional scaling on hiDPI monitors has been good enough for me to not care for at least 5 years. It's like systemd; the people bitching either want to sound contrarian or actually know enough to roll their own down to the low level. At which point I must say; show me the code. Open a PR or give it a rest
- clhodapp 3y agoFor me, personally, this was the year of Wayland... but that comes after years of checking every few months whether it was ready. My last-resolved reason not to switch: Popular compositors didn't support scaling for XWayland on par with how it works when X11 controls the screen right up until this year. This meant that you either had to opt out of scaling in Wayland (horrible on high dpi displays) or accept super blurry XWayland windows. Of course, it would be great if we didn't need XWayland but... That's not going to happen until more users have Wayland desktops and users like me weren't about to accept Wayland desktops while this type of problem existed.
- SAI_Peregrinus 3y agoColor management is an obvious one. There's a merge request, but still in progress.[1] Linux isn't particularly suitable to photo editing anyway, but it'd be nice to at least display colors properly! [1] https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/14 https://gitlab.freedesktop.org/wayland/wayland-protocols/-/m...
- advisedwang 3y agoWhen you launch a device in the Android or ChromeOS ecosystem the specific {motherboard, graphics card, cpu, etc} combination gets tested by the manufacturer before launch and drivers written/updated to make sure they work well together. In the Linux world, this is not possible as there is a combinatoric explosion of possible configurations. On top of that, in the wider PC system, hardware routinely launches without dev/test in the Linux world. Drivers often work for a whole chipset, so may often be running a specific device within that chipset that was never tested or seen by the developer of the driver at all, let alone in the hardware combination.
- johnny22 3y agoandroid didn't gain official mutliple on screen windows until relatively recently, and even so they're still only in some fixed sizes. It also helps that any changes are tied to released by one company (google), while the linux stack is made up of stuff by tons of differnet people with different moving parts, and then distributed at various versions by various people on various distributions at different release cadences. There's no one group controlling any of this A sibling comment also mentioned hardware. There's certainly a lot less driver and hardware variance as well. When it comes to chromeOS, I think they are switching to a wayland compositor, and it'll be a lot easier for them because there they control everything.
- hollerith 3y agoChromeOS is migrating to Wayland as part of the "Lacros" project. (And the Linux environment and the Android environment in ChromeOS are already using Wayland.)