TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Flatpak is not the future (2021)

108 pointsby shrvtvalmost 2 years ago

38 comments

Tomtealmost 2 years ago
But it&#x27;s the present. And a godsend.<p>I&#x27;m using it for current Firefox, Zotero, Joplin and two or three more programs, none of which are packaged in Debian (except Firefox, but only the LTS version that doesn&#x27;t work with all my extensions).<p>Unless you can offer something better, I&#x27;ll keep using it.
评论 #37216041 未加载
评论 #37210945 未加载
评论 #37210979 未加载
评论 #37213185 未加载
评论 #37219356 未加载
评论 #37211629 未加载
评论 #37211275 未加载
gumballindiealmost 2 years ago
Neither are snaps. The future, for regular daily use, are appimages. Much like MacOS dmgs, these are a &quot;single&quot; file (from an end user perspective) that you download, double click, and run. That&#x27;s it. Ideally we&#x27;d see more work in this area. I am slowly trying to figure out how to automate builds for GUI apps and I am considering somehow settings up an inexpensive server to pull, package, and submit appimages to appimagehub. A crowdsourced effort would be cool. Imagine a distro where by default if you place apps in ~&#x2F;Applications you can just execute them. Comes with risks, but having them &quot;signed&quot; by appimage a lot of it would be mitigated. Linux, while excellent as a desktop, and I am referring to the many awesome distros available, is really user friendly. Let&#x27;s make it even more user friendly.
评论 #37211290 未加载
评论 #37211566 未加载
评论 #37211261 未加载
评论 #37211819 未加载
评论 #37211449 未加载
评论 #37212743 未加载
评论 #37212457 未加载
评论 #37212417 未加载
AdmiralAsshatalmost 2 years ago
Just built a new Gaming Linux PC which is intended to replace my aging Dell XPS 13 as my daily driver. Decided to go all-in on flatpaks, as I&#x27;ve been trying to stay away from rpm-fusion.<p>The Steam Flatpak has been an adventure, to say the least. I added a second SSD just for games that gets automatically mounted on boot, and I gather that having the games installed somewhere outside of steam&#x27;s &#x2F;home&#x2F; directory was not jiving with flatpak&#x27;s security model. It took some non-trivial editing (thanks, flatseal) to finally let the Steam flatpak be able to write outside of its own directory and install the games.<p>I still get occasional weirdness, especially on older games. I wasn&#x27;t hearing any sound effects on Team Fortress 2, which I eventually discovered was tied to an selinux alert. At last check in, I still can&#x27;t launch CS:Go, because of some backend problem while trying to play the opening movie...
评论 #37211177 未加载
评论 #37211267 未加载
评论 #37211506 未加载
评论 #37211569 未加载
评论 #37211051 未加载
评论 #37211102 未加载
评论 #37215922 未加载
评论 #37211186 未加载
JohnFenalmost 2 years ago
Flatpacks solve no problem that I have, and bring their own headaches, so for me, flatpack is certainly not the future.<p>Same with snaps, although I dislike snaps more.
评论 #37211131 未加载
评论 #37212279 未加载
评论 #37211827 未加载
invokestaticalmost 2 years ago
I just want to point out that Windows actually has similar packaging problems. For some reason, Windows didn’t ship with C&#x2F;C++&#x2F;.NET runtimes. So practically every app ships with either a copy of the runtime DLLs or an installer to install those runtimes globally. Every Windows installation inevitably gets a million msvcrt dlls across random places, never getting any security updates. I believe this situation is a lot better on recent versions of Windows 10&#x2F;11.
评论 #37211166 未加载
ceronmanalmost 2 years ago
Flatpak seems to follow a similar path as many other Linux technologies like Wayland or Systemd, in the sense that they seem to arouse the anger of a small but very vocal crowd who really can&#x27;t stand any challenge to the status quo. So this is the template of the story:<p>There is a new tool or workflow trying to replace or complement an old one. This new tool tries to solve many different complex problems that the old tool, usually designed decades ago, doesn&#x27;t solve well in this the current world. To do so, obviously, some sort of compromise is required, the new tool won&#x27;t do certain things that the old tool used to do, but in exchange of that it will do a lot of new things that many users really want. However this small crowd is really pissed by this, without understanding that there is no holly grail solution and some sort of compromise is always required. Additionally, as it&#x27;s natural with any new technology, the very first incarnations of the new technology are not very mature and there is a lot to polish, a lot of tooling missing, and a chicken and egg problem of not enough users to drive its take off. And the small crowd will use all this as much as they can to try to prevent the world from moving on.<p>However, as time passes, the new tool starts becoming more mature, the obvious shortcomings get fixed, and all the new possibilities that the tool enables start to really shine. And while the initial compromise will always remain, the majority of users realize that the tradeoff was worth it.<p>This has happened with Systemd, it&#x27;s starting to happen with Wayland, and I believe it will happen with Flatpak was well. We&#x27;ll see.
评论 #37212295 未加载
评论 #37213961 未加载
评论 #37220314 未加载
评论 #37211738 未加载
dale_glassalmost 2 years ago
I think it&#x27;s an unfortunate necessity for some kinds of applications.<p>Eg, we make this: <a href="https:&#x2F;&#x2F;overte.org&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;overte.org&#x2F;</a><p>We&#x27;re currently using AppImage because that was the first thing that worked for us, but most of the reasons are the same either way: We want to spend time developing the software, and that means it&#x27;s hard to justify packaging every release for a dozen distributions. And I&#x27;d say nobody particularly wants to do it.<p>We also expect our users to keep reasonably up to date, not whenever it&#x27;s convenient to the distribution. Code changes can change the networking protocol, and some of those can require everyone to upgrade.<p>So at least to me it makes perfect sense to package some kinds of applications this way. Maybe not KDE&#x27;s calculator, but definitely things like games and tools with specialized markets, where it may be difficult to find people wanting to do the work of packaging them for a distribution.
评论 #37211479 未加载
评论 #37211221 未加载
TOGoSalmost 2 years ago
One major headache with trying to run precompiled binaries on Linux is that if they were compiled using a newer version of glibc than the target machine, they won&#x27;t be able to run. Back while working on Factorio, I was trying to get around this problem with endless Docker containers, but coworker Wheybags came up with a much simpler solution to this, which is simply to, at compile time, link to the oldest compatible version of glibc by including a header: <a href="https:&#x2F;&#x2F;github.com&#x2F;wheybags&#x2F;glibc_version_header">https:&#x2F;&#x2F;github.com&#x2F;wheybags&#x2F;glibc_version_header</a><p>It&#x27;s too bad this hasn&#x27;t been standard practice for the past 30 years!
xp84almost 2 years ago
Article: &gt; How many people on Earth will truly understand how this all works? I feel this. And I think the software industry in general seems to have decided the answer is “No one does or will, and meh, we don’t care.” This is why every mysterious issue with every OS seems unsolvable. Every app is spewing random exceptions to the logs 100 times a second because in fact it does not just work together, most things barely work and nobody cares. We don’t get to have good software that works reliably anymore.<p>Like my phone that turns its ring volume to 100% every few days. It’s not a rogue Shortcut, cuz Shortcuts doesn’t even have that feature (only Media volume). No one will ever know why that occurs, because no one understands the whole stack from top to bottom. And in a way that’s the best case scenario with such a walled garden controlled by one “benevolent” dictator. Using all these packaging frameworks and libraries at once, no one will ever be able to make sense of some kinds of problems, because everyone is cargo-culting some large section of this stack of complexity, because a single person couldn’t hope to make sense of everything.
danShumwayalmost 2 years ago
This debate will never die, but while people have been complaining about it, Flatpak has quietly just become a better way to package software for end users. My criteria is that I&#x27;m a user, I don&#x27;t care about what&#x27;s elegant to developers -- and I have fewer problems with Flatpak than I have with non-Flatpak software. The vast majority of Flatpak problems I do have as a user come down to sandboxing permissions that I actually quite appreciate. The (very) few architectural problems are problems I would have had with other bundling systems too.<p>&quot;Developers are lazy&quot; -&gt; No, no user ever wants to debug dependency issues, and developers can&#x27;t get rid of dependency issues. This feels like a repeat of the Rust debates where C developers kept complaining that good developers just don&#x27;t have memory errors. Okay whatever you&#x27;re very talented, congratulations; but most software isn&#x27;t written by people who can reliably support multiple distros and lowering the skill requirements to maintain software is good actually because I use hobby projects all the time. Even outside of hobby communities, GoG&#x27;s Linux installer is so borked that half of the time it&#x27;s easier to install the Windows versions of the games and run them through Wine (because then you can use Bottles which provides dependency isolation). And I am completely convinced that dependency management is the problem -- Flatpak apps don&#x27;t have these issues, at least not nearly as many.<p>I&#x27;m not saying everything should be a Flatpak, but certainly at the very least most Linux games should be, anything that&#x27;s graphical that isn&#x27;t being distributed through an official package manager is a good candidate to at least consider Flatpak. I&#x27;m always grateful when I can install a graphical app through Flatpak instead of AUR.<p>Is it the future? Flatpak critics spend a lot of time bashing Flatpak and very little time proposing equivalent fixes or acknowledging why Flatpak exists in the first place. If those issues were solved and the solutions popularized on mainline distros, maybe Flatpak wouldn&#x27;t be the future. But I&#x27;m not holding my breath. This article proposes GoG&#x27;s system as an alternative and says the existing problems are minor and easy to solve. 2 years later, I have literally <i>never</i> gotten a GoG native Linux installer to run without problems on the Steam deck.<p>I&#x27;m not even saying it has to Flatpak, but whatever system you want to propose (Snap, AppImage, whatever) very clearly dependency isolation is better for end users and results in fewer bugs. &quot;It takes up too much space&quot; just isn&#x27;t a real critique when the alternative being proposed almost universally fails to run on my hardware.
评论 #37211324 未加载
评论 #37212130 未加载
emersionalmost 2 years ago
Related: <a href="https:&#x2F;&#x2F;blog.brixit.nl&#x2F;developers-are-lazy-thus-flatpak&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;blog.brixit.nl&#x2F;developers-are-lazy-thus-flatpak&#x2F;</a>
评论 #37211442 未加载
jasoneckertalmost 2 years ago
I wonder if the author of the article feels differently about Flatpak today (a great deal has changed in the past 2 years, and Flatpak seems to have a vibrant future today).
评论 #37211364 未加载
HeckFeckalmost 2 years ago
If the future is Snap I don&#x27;t want to be around for it.
gjsman-1000almost 2 years ago
Most of this is obsolete, especially the complaints about size.<p>Worth reading:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29316024">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29316024</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31406556">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31406556</a>
pmarreckalmost 2 years ago
It is strange to watch everyone fight about snaps, flatpaks, silverblue ad nauseam when Nix (or its full-OS version, NixOS, or the GNU alternative, Guix) has already definitively solved this problem but is still considered too arcane for most people to use.<p>It only uses the disk space it must, AND every app only accesses the dependencies it needs. It&#x27;s the best of all worlds (except for the learning curve, which is of course why it&#x27;s considered &quot;arcane&quot;).<p>As a use-case where its capabilities came in handy <i>just today</i>, I had some old files I encrypted with gpg1 which didn&#x27;t cleanly decrypt with gpg2. Accessing the old version of gpg, just for this one console and this one time for this one task, was a one-liner: &quot;nix-shell -p gnupg1orig&quot;. With that one command it installed everything that version required, and put its executables at the front of my PATH in my shell, so I was able to do the decryption. When I exit, that stuff will get collected on the next garbage collection.
评论 #37211188 未加载
评论 #37211262 未加载
评论 #37213264 未加载
dcowalmost 2 years ago
Not dissenting generally, just want to point out that the author is wrong about the file permissions dialog thing:<p>&gt; This is the most complicated and brittle way to implement this. It’s also not at all how other sandboxed platforms work. If I want file access permissions on Android, I don’t just try to open a file with the Java File API and expect it to magically prompt the user. I have to call Android-specific APIs to request permissions first. iOS is the same. So why shouldn’t I be able to just call flatpak_request_permission(PERMISSION) and get a callback when the user approves or declines?<p>On macOS you try to open a file and it’s handled transparently. “iOS is the same” also could use a citation (I don&#x27;t recall off hand if it is, and kinda doubt it based on the macOS behavior, so I feel a citation is appropriate). I’m slightly confused why the author is comparing Linux desktop with mobile rather than existing desktop implementations of sandboxing… feels a tad disingenuous.
评论 #37213341 未加载
samcat116almost 2 years ago
&gt; Personally, I’m much more interested in how to get Excel and Photoshop on Linux rather than untrustworthy drive-by apps and games, so I don’t really care about sandboxing, permissions, portals, app stores, alternate runtimes or really any of the stuff Flatpak does.<p>Guess what Excel and Photoshop will want if they were to ever port their software to Linux.
osmsucksalmost 2 years ago
I had to stop using elementary OS when they doubled down on Flatpak because I ran out of disk space. Those runtimes add up. :-&#x2F;
phkahleralmost 2 years ago
A related part of the problem is apps that have a large number of dependencies. We should all be careful about which dependencies we use, keep that to a minimum, and try to use things with a stable API.<p>The other part is library developers need to aim for backward compatibility so apps don&#x27;t need to care so much about what specific version they&#x27;re using.
OJFordalmost 2 years ago
Is there anything that offers mobile-style sandboxing &amp; permissions API like described?<p>I&#x27;d love that, but I&#x27;m not even sure how it would work, I don&#x27;t want it via walled-garden app store where you basically have to target it as an extra platform, because of dealing with those APIs... It would need to somehow just sort of slot into Unix, and if you didn&#x27;t have it &#x27;enabled&#x27; on the system it would just plough on uncontrolled as it does today.<p>What&#x27;s the story or usual recommended practice on NixOS? Seems like the overlap with security-minder types would be quite high, and if you did use something like Flatpak wouldn&#x27;t that interfere with Nix&#x27;s own management? (Or at least not use it.) (I didn&#x27;t learn much from the Flatpak Nix wiki page.)
rvzalmost 2 years ago
Just goes to show the amount of third-party fragmentation that goes on in the Linux Desktop ecosystem which tons competing alternatives of alternative system components and now installers all in conflict and fighting against the users system.<p>Snaps are only available in the default install in Ubuntu and Flatpaks is not in the default install of other Ubuntu-based distros [0]. Even other distros have neither in their default installs.<p>It is not the same thing with macOS with its first party installation methods provided by Apple that just works.<p>[0] <a href="https:&#x2F;&#x2F;www.omgubuntu.co.uk&#x2F;2023&#x2F;02&#x2F;ubuntu-flavors-no-flatpak" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.omgubuntu.co.uk&#x2F;2023&#x2F;02&#x2F;ubuntu-flavors-no-flatpa...</a>
zamalekalmost 2 years ago
On my old NVIDIA (never again) laptop, Flatpak left around 30GB of NVIDIA runtimes lying around. Each version approaches 1GB in size, and Flatpak will install updates for all versions of the driver you have ever installed. Downloading a few GBs just to update Firefox is just bloody annoying, even with cheap disk space and fast internet. Fixing it was easy enough, but it took figuring out what&#x27;s going on, and requires regular maintenance (two things the target user for this project probably wouldn&#x27;t know how to do).<p>The drivers also never work properly. I&#x27;ve attempted to use several official game flatpaks, and have run into various forms of crashes (including the entire system stalling).
wudangmonkalmost 2 years ago
I only use linux for daily use but deploying software on it is the worst out of any OS that I know of with windows being the best. Every update can potentially break things because who knows what changed in that library you depend on, and its not like you can avoid that by shipping static libraries to prevent this since for whatever reasons everyone has conspired against static libraries, I&#x27;m guessing because they take up more space?.<p>Instead of having some minimal set of conventions of where things are supposed to be stored, instead of allowing static libraries to actually work it seems that the solution is to now include the whole system instead. After all storage is cheap right?.
评论 #37214120 未加载
Octabrainalmost 2 years ago
Flatpak is good overall but it has one things I dislike:<p>- Not being oriented to also CLI apps.<p>Apart from that, I like it for its convenience and I think it will be the future (or a similar approach). The reason for my thinking that is that, putting myself in the shoes of a distro maintainer, I can see the appeal and benefit of &quot;isolating&quot; the system packages and libraries from the packages installed by the user. I find it similar to the great relief that Docker brought back in the day when reduced the system administration overhead as it reduces the amount of moving parts on the functioning of an app.
gclawesalmost 2 years ago
I&#x27;m curious how all of this compares to macOS&#x27;s .app packages.
评论 #37211463 未加载
评论 #37210895 未加载
unixheroalmost 2 years ago
I for one dont care about disk space and think Flatpack is great
评论 #37210856 未加载
CapsAdminalmost 2 years ago
The fundamental problem to me has always been that people cannot agree on standards, so this a relatively good solution to that problem. I can&#x27;t think of a better one that doesn&#x27;t involve people needing to come together to agree on a standard.<p>Personally I prefer an environment where people are free to experiment and not be held back by backwards compatibility and opinions. Any utility that can automate backwards compatibility is good imo.
INTPenisalmost 2 years ago
I was kinda forced into flatpaks with Fedora silverblue and 10 months later I don&#x27;t really mind them. They are good enough for a laptop with no special requirements. I have Dino, Steam, Gnome Tweaks, Fractal, Signal, Gimp (crashes a lot), Firefox (because it comes with codecs, unlike the Fedora flatpak), Transmission, Chromium (mostly to run Teams and Outlook for work).
nologic01almost 2 years ago
What is the linux app endgame in an ideal world? Imho that is true linux on mobile. With painless, secure, efficient downloads from app stores. (This way the FOSS impact will skyrocket and the promise will be fulfilled)<p>Work backward from that requirement and constraint. Solutions and designs that barely work for the linux desktop will never bring a revolution...
bobajeffalmost 2 years ago
Flatpaks break a number of apps that I use. So no, it&#x27;s not the future. Come up with something that works before making it the solution to distribution packaging.
teddyhalmost 2 years ago
If Flatpaks (and similar) are such a great idea, why don’t software in Flakpaks install their own dependencies <i>as Flatpaks</i>?
denton-scratchalmost 2 years ago
I have one AppImage installed on one system (of four, at the moment). Zero flatpaks and snaps. That one AppImage appears to be available only as a Windows install or an AppImage. I dread any future where <i>everything</i> is an AppImage (or whatever).<p>Why not just ship everything with a complete OS? Hell, let&#x27;s go the whole hog; hardware is also a dependency, it&#x27;s not just libraries. So let&#x27;s ship every app as a hardware appliance.<p>This is not why I use Linux.
Timber-6539almost 2 years ago
Doesn&#x27;t matter, Flatpak won over Appimages and Snaps in adoption numbers.<p>And the example given here for GIMP having r&#x2F;w permission to your home doesn&#x27;t hold water. The distro-packaged app probably has the same permissions in comparison. At least with Flatpak, to deny it this permission is a simple toggle with Flatseal.
评论 #37211397 未加载
评论 #37211207 未加载
评论 #37211677 未加载
butzalmost 2 years ago
While Flatpak is not the future, today it helps keep $HOME directory clean.
jasonthorsnessalmost 2 years ago
vscode flatpack just didn&#x27;t work for me - found a workaround for terminal not working, but CoPilot extension refused to authenticate. No issues with non-flatpack version :(.
ape4almost 2 years ago
Flatpak is the best of all the other alternatives.
travisgriggsalmost 2 years ago
Random tangent. When I see articles linked from this time frame, my brain automatically thinks<p>&quot;Ah, but that was during Covid when a disproportionate amount of people were working from home and a lot of the normal feedback loops weren&#x27;t running normally. Those were lonely&#x2F;different times. I&#x27;ll consider this article accordingly.&quot;<p>It&#x27;s not really rationale&#x2F;logical&#x2F;founded, but that&#x27;s where my brain kind of initially goes. Do others experience this?
spenrosealmost 2 years ago
The #1 story on Hacker News at 2023:08:21T15:41Z is a 2021 discussion of Linux desktop packaging tools.<p>Hypothesis: HN story up-voters are heavily drawn from Free &#x2F; Open Source Software folks interested in issues that were broadly discussed in &quot;tech&quot; two decades ago (Linux for the desktop!) and are much less broadly discussed today.
评论 #37213657 未加载