There is hope however. Modern application containers like Flatpak aim to bridge the differences between Linux OSes by being self contained.
On desktop you need to be able to install and uninstall apps by the dozen every week and never ever worry that your “system” can’t run the app, or that the app will ruin it for some other app. This requires duplicating libs or statically compiling. However package systems tend to dislike packages that include a private copy of 100 libs. That’s broken.
Flatpak is exactly what’s needed. And it needs to grow to encompass APIs on the same level as Windows and OS X (e.g good notification apis, dpi change events for multi monitor across all window managers etc etc). Modern desktop APIs are pretty intricate on win/mac, so Linux needs to catch up. The problem with catching up is that design by committee is never quick to drop old cruft, unite on standards etc. This is why I think Mozilla, Valve, Google etc has a better chance of making the successful Linux desktop, than the OSS community has. Just like the OSS community won’t ever make a AAA game.
Packaging third party libraries with your binary is just going to lead to a race to see which fucks a user first: running out of disk space or that one app with an unpatched TLS library that allows RCE for an attacker.
It’s important that components that do have significant attack surface such as TLS are provided and patched by the OS.
The shared libraries of e.g windows come in pretty well defined tiers. Things that the OS provides, various optional runtimes that must or can be shared such as msvcrt and then there is not much else. No app is going to install a “system wide” image decoder or other utility lib (In the past, it was a thing to dump a dll into the OS folder, often overwriting older ones, which is where the term “DLL hell” comes from. Luckily that doesn’t happen these days).
Linux kernel is pretty much hidden from userland, including C and C++ code.
Google can easily replace Linux with any kernel that offers the POSIX subset required by Android. Everything else are just libc, libc++ and Android specific native libraries.
Only OEMs writting Android drivers would notice the difference.
Can’t see how it would be bad to have it on top of a replaceable kernel or why it would be good to expose things that would make it harder to do so.
To rephrase the topic to a more relevant form “when will there be a FOSS desktop OS in widespread use?”.
If someone with major resources announced a focused effort to enter the desktop OS space right now, I wouldn't put their odds in a good place. Why would an unfocused effort work?
I cringe at the idea of Linux itself containing a desktop, rather than distros adding one, so if that's the solution hopefully it keeps not being its year.
EDIT: clarification
Flatpack is an example of such an effort, but it needs to be more ambitious and preferably more “official”.
Flatpak isn't about APIs. It's about making easy-to-use application bundles.
The needed outcome is for freedesktop to have an application distrubution story - which is effectively the same as if flatpak had a larged application interoperability idea. The fact that this is two separate efforts highlights the problem - you need everything to be a coherent whole.
A combination of a larger and more modern desktop api compliance effort PLUS an app distribution effort like for example flatpak, would be perfect. E.g. "here is how you build an app for linux desktop v5". You include the right headers linux_desktop_sound.h, linux_desktop_dpi_notifications.h, linux_desktop_dpi_scaling_events.h (etc.). I know in the end an API on top just makes you have N+1 apis - but that's the reason this whole thing needs more dictator/ivory tower. It shouldnt' be be called "freedesktop-flatpack", or "somenewname" it should be called "linux desktop apps v1.0". This is probably the hardest part: getting the politics together. For desktop to succeed you need to have an ivory tower somewhere, in the middle of the bazaar.
The author lists all the reasons traditional desktop linux failed and keeps failing, but the short form of the argument can be summed up like this:
Linus Torvalds, who knows a bit about Linux, also makes his own desktop app (perhaps not as famous as the kernel and git), a scuba log app. He would like to release the damn thing built for Mac, Windows and Linux. But can he? Of course not. He releases it compiled for Windows and Mac, and then as source for Linux.
Linux on the desktop might succeed when Linux has a desktop. As in, at the OS level, a developer can make assumptions about how the clipboard, resolution scaling, sound, notifications, application install/uninstall etc works. Until then, no.