{"id":36,"date":"2021-09-20T15:23:00","date_gmt":"2021-09-20T09:53:00","guid":{"rendered":"http:\/\/satvikpatwardhan.codelogistics.net\/?p=36"},"modified":"2024-08-16T18:11:06","modified_gmt":"2024-08-16T12:41:06","slug":"are-flatpaks-the-way-forward-for-the-linux-desktop","status":"publish","type":"post","link":"https:\/\/satvikpatwardhan.codelogistics.net\/index.php\/2021\/09\/20\/are-flatpaks-the-way-forward-for-the-linux-desktop\/","title":{"rendered":"Are Flatpaks the Way Forward for the Linux Desktop?"},"content":{"rendered":"\n<p>Debian 11 has been released recently, but one of the admittedly few reasons I am excited for it is that testing\/ unstable will be unfrozen soon.&nbsp; I have already lost my main Debian install due to dependency hell resulting from an impulsive jump to sid+experimental in need for newer packages. (Testing had been frozen since <em>January<\/em>.) I wish I switched to Flatpaks instead.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Linus Torvalds, the creator of the Linux kernel, once said in a Debconf that all the individual distros had done terribly when it came to package management. Which was true: each major distro has a different package manager,&nbsp; format, package names, versions etc. This prompted him to release his own Subsurface diving log application only in source form for Linux. He even specifically mentioned Debian\u2019s policy of maintaining very outdated versions of packages in the stable release.<\/p>\n\n\n\n<p>Well, it seems that most distros have solved this issue by ignoring it and hoping it goes away, except Red Hat developing Flatpak and shipping it with Fedora (but without Flathub for some reason), and Canonical developing snap\/ snapd\/ snappy for Ubuntu, probably because Flatpak is <em>not invented here<\/em>. (Oh, by the way, the majority of work on GNOME, systemd, pulseaudio etc. was done by Red Hat, whereas Canonical was making Unity).<\/p>\n\n\n\n<p>In case you are unaware, Flatpak is a technology for running the same applications on all Linux distros, with all the dependencies also packaged in Flatpak so that the application will work just the same on all versions of all distros &#8211; <em>with sandboxing!<\/em> It is wonderful. Why is this not the standard on all distros? The distros currently shipping it <strong>out of the box<\/strong> are Fedora (without Flathub?), Linux Mint, Endless, Elementary (without Flathub, again) and Pop!_OS. There\u2019s some big names in there, but all the multitude of Ubuntu and its derivatives are missing in the action, opting for the frankly inferior snap instead. (Why inferior? It doesn\u2019t support adding our own repositories, and it is closed source on the server side. Also, I didn\u2019t do any scientific testing or benchmarking for this, but from personal experience, they are <em>way<\/em> slower. Your mileage may vary.)<\/p>\n\n\n\n<p>Linux on the desktop is already riddled with multiple companies &#8211; SUSE, Canonical, Red Hat etc. all competing for glory, and not agreeing over <em>anything<\/em>. (Well, that is a lie. Otherwise we wouldn\u2019t have systemd everywhere, which would be bad, and we wouldn\u2019t have pulsaudio everywhere either, which would have been awesome. But I digress.)<\/p>\n\n\n\n<p>Such fragmentation will only hurt the desktop, as this turns away both new users and companies thinking of releasing their software for Linux.<\/p>\n\n\n\n<p>AppImages <em>can<\/em> run on all distos, so they are actually not bad, but they can\u2019t be automatically updated, or opened from a menu or used as a default application without fumbling about with .desktop files or menu editors. (AppImageLauncher may help with this though, but it isn\u2019t in any distro\u2019s repos.)<\/p>\n\n\n\n<p>Flatpaks are useful even on humongous distros like Debian, which hosts a large but fairly outdated collection of packages (especially during and after freezes), and they are a necessity on smaller distros. Why do so many distros insist on repeating the same work done by others over and over again, packaging the same versions of the same packages with the same patches?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debian 11 has been released recently, but one of the admittedly few reasons I am excited for it is that testing\/ unstable will be unfrozen soon.&nbsp; I have already lost my main Debian install due to dependency hell resulting from an impulsive jump to sid+experimental in need for newer packages. (Testing had been frozen since &hellip; <a href=\"https:\/\/satvikpatwardhan.codelogistics.net\/index.php\/2021\/09\/20\/are-flatpaks-the-way-forward-for-the-linux-desktop\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Are Flatpaks the Way Forward for the Linux Desktop?<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federate","footnotes":""},"categories":[7],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-writeups"],"_links":{"self":[{"href":"https:\/\/satvikpatwardhan.codelogistics.net\/index.php\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/satvikpatwardhan.codelogistics.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/satvikpatwardhan.codelogistics.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/satvikpatwardhan.codelogistics.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/satvikpatwardhan.codelogistics.net\/index.php\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":2,"href":"https:\/\/satvikpatwardhan.codelogistics.net\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":92,"href":"https:\/\/satvikpatwardhan.codelogistics.net\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions\/92"}],"wp:attachment":[{"href":"https:\/\/satvikpatwardhan.codelogistics.net\/index.php\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/satvikpatwardhan.codelogistics.net\/index.php\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/satvikpatwardhan.codelogistics.net\/index.php\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}