by contrarian1234 · 3y ago · 0 comments
You want to install a calculator app? That'll be multiple gigabytes of download. Mere mortals now have to wait half an hour to get the app.
What's even more insane is at the command line when you Tab to autocomplete the thing makes network requests and hangs! It's the only CLI app I know what requires the internet to autocomplete!
I think the thing has been a complete flop. The multi gig "backends" are all versioned weirdly and I find they're very rarely reused between applications.
Static builds in AppImages are smaller and faster and don't have weird UI issues. AppImages just need maybe an external update mechanism and more standard system integrators. But I'm glad that fundamentally the app format and the updater and system integrator are decoupled. These kitchensink app "systems" seems just big and ugly
The runtime thing that flatpak supports is, ironically, to minimize and deduplicate common dependencies, and to be fair they are only downloaded with the first app that needs it with many apps using the same handful of runtimes. The fetish for shared dependencies within Linux and the pains it causes are a bit frustrating, but that's not new to flatpak.
> What's even more insane is at the command line when you Tab to autocomplete the thing makes network requests and hangs! It's the only CLI app I know what requires the internet to autocomplete!
nit: CLI tools do not implement auto-complete themselves. What you are seeing are auto-complete scripts for your shell that make network connections.
Not sure if flatpak keeps a local repo list. That would be the only way to implement tab-completion of installable items without making network connections.
Frankly shared dependencies makes sense when they're sort of wide-consensus. Debian-stable or Ubuntu-LTS. Everyone is building to work with the same set of version numbers and they are all rock stable for years. Rolling shared dependencies is just a recipe for broken apps. It's just a combinatorics problem. You can't test against every combination of every version of all your dependencies.
And multiversion shared dependencies .. I don't even understand the point (and why Nix has always confused me)
nit: This is incorrect. Robust auto-complete scripts call the actual program to provide completions.
That is what Flatpak does. It is Flatpak itself that makes the network connections.
https://github.com/flatpak/flatpak/blob/main/completion/flat...
Not that it would make any differencen if it was implemented in Bash seeing as the Bash script is also provided by Flatpak.
The only alternative that does not lead to downloading 100s of MBs of files is .deb/.rpm files and the associated "the prebuilt binary needs libfoo.so.4.0.1 but Debian ships libfoo.so.4.0.0" problems. Which ultimately means you pull even more dependencies than the Flatpak runtime for building (gcc, make, CMake, libfoo-dev, libfoo-dev's *-dev dependencies,...) and spend a long time compiling the application (also suited only for high memory, high core count machines).
[0] https://www.appimagehub.com/p/1169218/
[1] https://www.appimagehub.com/p/1409898
[2] https://ungoogled-software.github.io/ungoogled-chromium-bina...
I was skeptical to it, until I realized it uses cgroups for isolation. Now I'm actually quite fond of it, because I've recently converted to using immutable linux distros.
The SDKs are shared between applications, just like a traditional package manager. So this is a fixed cost.
Also I think the sum of GNOME and Freedesktop SDKs is closer to 1GB, than multiple gigabytes.
Flatpak means I can continue to use it far into the future.
I have a handful of apps and 3 flatpak runtimes on my phone right now and that's only because I'm the latter (and have to be because of 32GB eMMC).
But for things like Steam or Lutris, I happily sacrifice some GB to run a more stable and isolated version.
The flatpak is not officially supported by Valve
I’d still take an unofficial wrapper over that time Steam was wiping home directories.
Edit: Valve releases tarballs and a .deb package. Why would they release a .deb when Arch (which steamos is based on) doesn't use .deb? Releasing a .deb makes me think they test the thing on Ubuntu or Debian
I find that they're generally rather well shared between apps. I use Tumbleweed and only install apps via Flathub. I have around 40 apps and I don't have this problem. It was a problem when I used 4 Flatpaks and the rest came from system repos.
The top 2 calculator apps were under 5mb in size. I'm not sure what point you are making because the hyperbole was too extreme. <2s?
I have every shade of computer and wifi connectivity and waiting <60s-<5min for a download, one time, isn't going to change any experience. We forgive one time downloads. We do not forgive weekly forced reboots and dealing with autosaves M$.
I'm pretty sure that it's a bash-completion feature / "fault".
No command is really executed while your are typing in a terminal until you press "enter".
Try tab-completion under pure sh or powershell
Oh that's actually a killer feature of kubectl for me. It's also used by a lot of tools around Kubernetes as well. It makes me not only faster, more certain of results of my commands in advance, but also makes me easier to understand to others when I share what's going on on environments.
Yeah, it does suck if API is far away, but the benefits are too great.
But like, it's 2023... Having that requirement isn't a hard sell. Especially considering the base of Windows and macOS have fancy requirements as a base.
Also, Flatpak allows for lib dependencies to avoid duplicate libraries from filling up your disk. Not really sure what else you expect.
I think this is a sad attitude, when software actually has quite a high carbon footprint[1] on par with the aviation industry. There is so much old hardware that would work just fine if we actually cared to make software that works for them.
I think new software should lower the requirement, and better hardware should mean faster software, not that developers can get wasteful.
[1] https://foundation.mozilla.org/en/blog/ai-internet-carbon-fo...
However, that speed came at the cost of laborious optimization for the low-end computers of the time and millions of dollars spent by Microsoft debugging defective C and assembly code within Windows.
The only way to force software to be more efficient would be some sort of cap on how inefficient software were allowed to be, which doesn't seem possible. At most, you can have a carbon tax, or increase taxes on electricity use, indirectly incentivizing the use of energy-efficient software.
I def. agree though tat a carbon tax to force companies to be more frugal would help too.
I've heard too many times to not think about optimization and just throw more hardware at problems, I think that's a mentality we really need to start questioning.
Assuming that the app developers play nice and all agree to use the same (latest?) version of the libraries. In which case Flatpack becomes just a clone of Debian/Arch.
If app developers don't play nice (which is most likely), Flatpack becomes more of a bloated version of Nix/Guix.
I know several people who are on a shitty data limited connection. Their internet becomes basically unusable after a windows update tore through it.
Hell the company I work for still hasn't found anyone willing to replace its ancient line with anything remotely modern and the multi connection + mobile network workarounds we have going breaks down the moment there is even a drop of water in the air.
2023 just like the years before it is a year where the network providers don't give a shit about decent service.
Doesn't autocompleting `sudo dnf install ...` do the same?
You might find this shocking, but in many parts of the world "nice computers on fast internet" is kind of a given now. So for those, even if it is "gigabytes", it is worth it for the various benefits like security or convenience, for example.
None and no one said that it does offer any kind of security. The criticism was entirely unrelated to that.
On the other hand, flatpaks sandboxing is also severly limited by the fact that most packages do not make use of it much. In the past the runtimes offered by flatpak were also lacking behind on critical security updates [0]. Did that change in the meantime?
Edit: They removed many of their examples at some point, so it's no longer as bad of an article.
For example if VSCode wouldn't have direct access to the file system, it would be unuseable since it doesn't support portals to ask the user to grant it access to specific folders (by selecting them through the file picker).
In the process of packaging an app for flathub, the packager has to provide some reason for why for example full file system access is necessary. The discussion to add or remove permissions are always open [2].
[1] https://theevilskeleton.gitlab.io/2021/02/11/response-to-fla...
I've never had an AppImage hacked.. (or honestly anything else hacked on a Linux machine) though I'm not running AppImage servers
> in many parts of the world "nice computers on fast internet" is kind of a given now
Well if they want to be an appstore solution for the Linux ecosystem then they need to cater to everyone, not just rich kids in silicon valley
A calculator should be run as a fully isolated application, with no filesystem access and no ability to damage anything even if it tries.
I could upload a "Calculator" application that looks harmless, and even functions as a calculator, but actually steals your GPG keys and logs keyboard input. With a sandbox this would not be possible (in theory).
A "calculator" app isn't really unique here, it can be malicious just as well as anything else could be.
You do not want "apps" to be able to do this at all!
A calculator shouldn't really have access to many things anyways, ideally only access to things it requires to function.
I have a few apps installed via Flatpak there are multi-gigabyte updates several times a week, usually for the base images under the apps themselves. I apparently have 3 different copies of GNOME, more than half a dozen platform images, and several copies of the Freedesktop SDK.
Many Flatpaks aren't sandboxed, either.
It shouldn't. Security should be implemented as a separate tool, not tied to any package management system.
https://www.youtube.com/watch?v=4WuYGcs0t6I
Its a recommended watch.
Yes, I have to update soon but I will do this when I buy a new Dell XPS