Appimages totally suck, because many developers think they were a real packaging format and support them exclusively.

Their use case is tiny, and in 99% of cases Flatpak is just better.

I could not find a single post or article about all the problems they have, so I wrote this.

This is not about shaming open source contributors. But Appimages are obviously broken, pretty badly maintained, while organizations/companies like Balena, Nextcloud etc. don’t seem to get that.

  • d3Xt3r@lemmy.nzM
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    8 months ago

    I’m a Flatpak user myself, but a lot of those arguments against AppImage are outdated or invalid. Here are my counterpoints:

    Usability issues

    GearLever solves all the problems mentioned.

    Updates

    There are AppImages out there that self-update , but GearLever also solves the update issue. And if you don’t want to use GearLever, there are other updaters like AppImageUpdate.

    The lack of repositories
    Appimages don’t even have a central place where you can find them, not to mention download them.

    This is blatantly wrong - AppImageHub exists for this very reason. There are also GUI frontends like AppImagePool which makes it easy to discover/download/install them.

    Lack of Sandboxing

    That is a fair point, however, AppImage never claimed to be a sandboxing solution, and for some use-cases this can even be an advantage (any Flatpak user would’ve at some point run into annoying sandboxing limitations - such as password manager and browser integration, or themeing woes). But there are other sandboxing options out there, such as using containers, and IMO, using a proper container is a better option for sandboxing. Or even better, use a VM if you’re actually running an untrusted app.

    Random location
    […] A necessary step would be mounting the entire /home non-executable. This is no problem for system apps, or Flatpaks, but where do you put Appimages now?

    There would need to be a standard directory to put such files in, which is normally the PATH. But this is also the easiest attack goal for malware, so PATH would be non-executable as well.

    I completely disagree with making the entirety of /home as non-executable, when $HOME/.local/bin directory is recommended by the XDG standard as a place to store executables. As long as $HOME/.local/bin directory is recommended by the XDG, I’ll continue to store my executables there. If you disagree, go argue with the XDG guys.

    Duplicated libraries

    This is a fair point but “they include all the libraries they need” is the entire point of AppImage - so mentioning this is pointless.

    If users would really install every Software as Appimages, they would waste insane amounts of storage space.

    Then it’s a good thing that they don’t right? What’s the point of making hypothetical arguments? Also, this is 2024, storage is cheap and dedicating space for your applications isn’t really a big deal for most folks. And if storage space is really a that much of a concern, then you wouldn’t be using Flatpak either - so this argument is moot and only really valid for a hypothetical / rare use-cases where storage is a premium. And again, in such a use case, that user wouldn’t be using Flatpaks either.


    Finally, some distros like Bazzite already have the above integrations built-in (GearLever/AppImagePool), so you don’t even need to do anything special to get it integrated nicely in your system, and there’s nothing stopping other distros adding these packages as optional dependencies - but it’s kinda moot at this point I guess since Flatpak has already won the war.

    Personally, I’m pro-choice. If AppImage doesn’t work for you, then don’t use it, as simple as that. Stop dictating user choice. If AppImage is really as bad as you claim, then it’ll die a natural death and you don’t have to worry about it. What you really need to worry about is Snap, which has the backing of Canonical and some dev houses new to the Linux ecosystem seem to think packing stuff as Snap is an acceptable solution…

    • aksdb@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

      I agree with you on all but one point: I detest the argument that “storage is cheap”.

      While true, it’s of now value to have 10 times the storage when all your apps grow 10 times in size. You can still only do as much as before but had to upgrade in between. This also means, it leaves behind people who simply can’t afford an upgrade and who have an otherwise running system.

      On top of that, we live in a time where we should not waste resources, since the world already suffers enough.

      I am therefore still a fan of optimizing software to be as efficient as possible.

      That being said: carefully used AppImages solve one such issue for me. Not every application I use needs constant updates. I want to stay at a specific version. That’s easy with AppImages.

    • youmaynotknow@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      This is how you bring your thoughts to the table. Awesome information that I certainly did not have. Thanks man.

    • Takios@feddit.de
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      (any Flatpak user would’ve at some point run into annoying sandboxing limitations - such as password manager and browser integration, or themeing woes)

      While I overall do prefer Flatpak over AppImage these days, the sandboxing has indeed been giving me more trouble than I think it is worth so far.

    • Pantherina@feddit.deOP
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      GearLever](https://github.com/mijorus/gearlever) solves all the problems mentioned.

      Sceptical but I will try it for sure.

      It makes appimages less worse than Flatpaks though, so its only “badness reduction” for me.

      There are AppImages out there that self-update , but GearLever also solves the update issue. And if you don’t want to use GearLever, there are other updaters like AppImageUpdate.

      The first is what I mentioned, such updates can be perfectly done by a central package manager. Did you ever try to seal off a Windows install using Portmaster, where every installed app needed network access for their individual update services? Just no…

      Ans to the repos, yeah maybe, havent looked if they are as secure as a linux repo. But the concept of “it is acceptable to download software from random websites” allows for malware to fit in there. Only if you will never find a .flatpak file it is possible to be sure its malware.

      But there are other sandboxing options out there, such as using containers, and IMO, using a proper container is a better option for sandboxing. Or even better, use a VM if you’re actually running an untrusted app.

      All worse than bubblewrap. Containers are either manual af (like with bubblejail) or if you refer to Distrobox/Toolbox, unconfined by default. They have no portal integration and no GUI configuration apps. So it may work somehow but probably worse, more resource heavy and there simply already is something better.

      Same for VMs. Keep an eye on Kata containers, but this is about least privilege, not some QubesOS system that will not run in a tablet, for example. Android uses containers, is damn secure, and runs on phones.

      [non executable stuff]

      This is about protecting against malware. Linux Desktops are built on a different logic. Any unconfined software can download a binary to localbin, copy a random desktop entry from usrshareapps to your local folder, edit the exec line and add that binary to it.

      Or just manipulate your .bashrc, change the sudo command to read input, save to file, pipe input to sudo. Tadaa, sudo password stolen.

      That concept of “users can change their home but not the system” is poorly pretty flawed. So any directory that is writable without any priveges is insecure, if you dont trust every single piece of software you run.

      Agree that Snaps are a problem. Its only really problematic when repackaging is illegal though, of course annoying but the Spotify flatpak is a repackaged snap. Same as with appimages.

      I should write the same about snaps, but I feel they are covered WAY better.

    • Kusimulkku@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      8 months ago

      GearLever

      Download from Flathub

      Hehe.

      Duplicated libraries

      This is a fair point but “they include all the libraries they need” is the entire point of AppImage - so mentioning this is pointless.

      “Bloat” is one big topic around these newer packaging formats so definitely not a pointless thing to bring up imo. I don’t think it should be as big of a topic as it is (the actual issue here is fairly minor imo) but it is definitely talked about.

      And flatpak (and snap I think) have much better tools to mitigate the space use issues.

    • Avid Amoeba@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      Oooh yes, let’s throw some mud in the gaping holes of this packaging solution, spit and tape the rest to make it do something it was not designed to do. Brilliant idea! ☺️

  • Avid Amoeba@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 months ago

    AppImage is great at what it does - provide an ultra-low effort packaging solution for ad-hoc app distribution that enables a developer who won’t spend the time to do rpm/deb/flatpak packaging. There are obvious problems, security and otherwise, that arise if you try using it for a large software collection. But then again people also use things like Homebrew and pacstall unironically so …

    • Throwaway1234@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      But then again some people use things like Homebrew and pacstall unironically so …

      Thank you for mentioning this! Unfortunately a quick search on the internet didn’t yield any pointers. Would you mind elaborating upon the security problems of Homebrew(/Linuxbrew)? Thanks in advance 😊!

        • Throwaway1234@sh.itjust.works
          link
          fedilink
          arrow-up
          0
          ·
          8 months ago

          I am aware that Homebrew has become the go-to solution for installing CLI applications on Bluefin. Which is exactly why I feel compelled to ask the question in my previous comment.

          Btw, I don’t really understand why you felt the need to share Jorge Castro’s blog post on Homebrew? AFAIK it doesn’t go over any security implications. Sharing the article would only make sense if Jorge Castro is regarded as some authority that’s known to be non-conforming when security is concerned. While I haven’t seen any security related major mishaps from him or the projects he works on, the search for the CLI-counterpart to Flatpak seemed to be primarily motivated by facilitating (what I’d refer to as) ‘old habits’; which is exactly what Homebrew allows. It’s worth noting that, during the aforementioned search process, they’ve made the deliberate choice to rely on Wolfi (which is known for upholding some excellent security standards) rather than Alpine (which -in all fairness- has also been utilized by Jorge for boxkit). IIRC, people working on uBlue and related projects have even contributed to upstream (read Distrobox) for patches related to Wolfi. So, there’s reason to believe that the uBlue team takes security seriously enough to work, contribute and deliver on more secure alternatives as long as it doesn’t come with a price to be paid by convenience. Which, in all fairness, is IMO exactly why Homebrew is used for in the first place (besides their recent utilization of technologies that have similarities to the ‘uBlue-way’ of doing things)…

          • j0rge@lemmy.ml
            link
            fedilink
            arrow-up
            0
            ·
            8 months ago

            I’m not a security expert but I do know that the Homebrew is working with openssf on security: https://openssf.org/blog/2023/11/06/alpha-omega-grant-to-help-homebrew-reach-slsa-build-level-2/

            Boxkit predates wolfi so it’s still alpine, I’ll probably replace it at some point but most of the forks of boxkit are because people want the premade github actions and they end up replacing it with whatever distro they want anyway. The wolfi connection is because I know the people who work there (including a ublue maintainer) and we have similar goals/ideas on how linux distros should be put together. My ideal dream is a wolfi userspace systemd-sysext on top of fedora base, then we can have our cake and eat it too!

            We’re not security experts but lots of us work in the field and that gives us access to peer review from experts when we set things up. We sign every artifact with sigstore so users can verify that the code used in github is what’s on their image, that sort of thing. And most of our practices utilize CNCF governance templates that lots of other projects use.

    • iopq@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      Great, now tell me why your appimage is complaining about not having some .so file on my system

        • iopq@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          8 months ago

          No, the problem is more subtle, the developer assumed I have the same libs in the same locations as a mainstream distro like Ubuntu, but I do not

          I actually have several versions of each library in different hashed folders (my distro does this) and I just steam-run normal Linux executables

          Except I can’t do that when using this appimage thing so it doesn’t directly work on my system

          • Avid Amoeba@lemmy.ca
            link
            fedilink
            arrow-up
            0
            ·
            edit-2
            8 months ago

            Well, theoretically if the developer had bundled the libs they assumed would be present on Ubuntu into the AppImage, maybe it would have worked. Would it be larger? Sure. 😂

      • Avid Amoeba@lemmy.ca
        link
        fedilink
        arrow-up
        0
        ·
        8 months ago

        I mean, I’m not saying they aren’t. I think the original argument is valid. I just think they’re better than the alternative, which isn’t Flatpak but self-extracting .sh files.

        • Pantherina@feddit.deOP
          link
          fedilink
          arrow-up
          0
          ·
          8 months ago

          Yes thats true. But that talk specifically mentioned the horrible security practice of appimages, and that they dont run everywhere at all

          • Avid Amoeba@lemmy.ca
            link
            fedilink
            arrow-up
            0
            ·
            edit-2
            8 months ago

            No argument. The security aspect is something that seemingly a lot of people in this thread don’t get. The some-person-creates-a-package-I-install model works as reliably as it does without sandboxing only when that person is a well known trusted individual or group. For example the Debian maintainers team. It’s a well known group of people who are trusted due to their track record to not produce malware-ridden packages intentionally or unintentionally. That is the line of defense you got. If you remove that, you end up in download-random-shit-on-Windows land in regards of security.

            What’s worse, this extends to the bundled libraries. Unlike central systems with shared libraries like Debian, bundling libraries means that the problem extends to the sources of those libraries! Package A and package B both include libjpeg-v1, it’s got a remote exploit gaping hole. Developer A has time to follow CVEs and updates theirs. Developer B doesn’t or has moved on. The system gets a patched libjpeg-v1, app A gets it, assuming it can be auto-updated. App B remains open for exploitation.

            Therefore given all that, sandboxing is a requirement for safely using packages from random people. Even when the packages from those come from a central source like Flathub or Snap Store. Sandboxing is why this model works without major security incidents on Android.

            Anyway, won’t be the first bad practice advocated by some in this community.

            • Pantherina@feddit.deOP
              link
              fedilink
              arrow-up
              0
              ·
              8 months ago

              This matches very well with this talk of an OpenSuse microOS maintainer doing a followup on his thoughts of Appimages, Snaps and Flatpak.

              Spoiler: Flatpaks are the only ones that work.

              • Avid Amoeba@lemmy.ca
                link
                fedilink
                arrow-up
                0
                ·
                edit-2
                8 months ago

                Snaps work too if you use Ubuntu and trust Canonical, as he mentions. I’m a bit annoyed at Flatpak for being inferior to Snap in that it can’t be used to install system components. Snap allows for a completely snappy system, without the need to build the base OS one way and the user apps another. The OS from-traditional-packages, user-apps-from-Flatpaks model is an unfortunate compromise but I guess we’re gonna get to live with it long term. It’s better than the status quo.

                BTW I completely disagree with him that everyone should be using rolling releases. As a software developer, user, and unpaid IT support, this is a mind boggling position.

  • OR3X@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    App Images do suck, but I don’t think flatpak is much better. It’s more of a lesser of two evils situation. Snap isn’t even in the conversation.

  • brax@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    I hate them both, give me a .Deb (or equivalent) if you’re gonna package it. And get off my lawn! 🤣

    • Pantherina@feddit.deOP
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      Installing .deb files from random sources is also very insecure and not reliable for updates.

        • Pantherina@feddit.deOP
          link
          fedilink
          arrow-up
          0
          ·
          8 months ago

          Appimages work “everywhere” so they are better for distributing malware.

          Flatpaks are normally not installed from random sources and I hope it stays like that.

          So yes and no.

            • Pantherina@feddit.deOP
              link
              fedilink
              arrow-up
              0
              ·
              8 months ago

              Not yet.

              The permissions are too comlicated (unlike “allow documents access” on Mac for example)

              And there is no Desktop GUI integration for opt-in to permissions. So install, open Flatseal / KDEs settings, harden, then run.

  • Captain Aggravated@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    When I was first getting into Linux, Flatpak wasn’t a thing quite yet. I ended up installing software in all of the following ways:

    • A .run file. Simplify3D (commercial 3D printer slicer) did this, it was kind of a literal word for word translation of the Windows .exe installer system. Please don’t do this. See also install.sh. Just don’t do this.

    • A .tar.gz file full of the executable and its assets with no further elaboration. This happened a few times but I really remember FTL: Faster Than Light did this when I bought the game directly from them rather than on Steam, and they were nice enough to link it to a Steam key for me. This’ll work if you’re handing out a thing you made to a couple other people, don’t distribute like this please.

    • Clone my git repo. I’m going to type this slowly so that it will best be understood: Git is for people who are contributing to code, not for people who just want to run it. Do not ask end users to compile from source.

    • Ubuntu PPAs. This one seems to have died; it’s been a couple years since I’ve seen anyone suggest adding a PPA. Good, they somewhat sucked.

    • Pip. There are way too many end-user applications that are distributed with Python’s package manager. No. Bad.

    • Alien. For a brief time the driver for my printer was only distributed as a .rpm, I was on a .deb based system. There’s a thing called Alien that lets you do that.

    • Loose .debs. Haven’t encountered this one in awhile either, but…could be worse.

    -Snap. No. Just. No.

    Compared to almost all of these I’d prefer an AppImage. For example, go look at the process of getting an up to date copy of Chirp, the amateur radio programming software. The instructions are kind of “build it yourself,” they are flawed and borderline incorrect, and include no uninstall instructions. I would vastly prefer they just package the damn thing as an AppImage.

    Compared to AppImage, I almost always prefer a Flatpak. Flathub is built into my distro’s GUI app center and is almost transparent to the user. Using Flatpaks with the terminal is complete rectal pus, but for most end users who prefer to do things graphically Flatpak works pretty well most of the time. It is not completely seamless, like Flatpak seems to suffer from all the drawbacks of sandboxing with none of the benefits.

    If you are distributing to a wide audience, use Flatpak or publish to the various standard repos. If you’re a little niche thing that might distribute 200 or 300 copies ever, AppImage is probably simpler. Otherwise just…keep your repo private.

    • Pantherina@feddit.deOP
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      Thanks, yes fully agree. There are a ton if shitty distribution ways.

      When I publish stuff on Github (its never big, always small tools) I never let people git clone, just download the needed parts.

      Releases are meant for that, but still, putting software on repos may be annoying but its the correct way to do.

  • Tiuku@sopuli.xyz
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    The only use case for Appimages
    If users want to carry applications around on a thumbdrive, or run on a fully immutable system like TAILS, Appimages may be needed. But this is the only target, and it is not a standard use case.

    I guess I agree. This is precisely the case where I have ever used them. Namely to have a portable executable of my password manager on a stick together with a backup of the password database.

    I had no idea they were being used elsewhere.

    • Pantherina@feddit.deOP
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      8 months ago

      Nextcloud, Balena Etcher, Lunar Launcher and more are exclusively supporting Appimage, thats the big problem.

  • h3ndrik@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    We’re also regularly debating Flatpak here. That password managers don’t tie into the browser and the desktop themes don’t apply. It’s also not the best solution and regularly confuses newer users.

    • Pantherina@feddit.deOP
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      That native messaging portal is probably developed somewhere. But for sure, also apps installing themselves “partly” as an extension of another, like Zotero and Libreoffice. This could be done though, okay.

      Themes generally just work on KDE at least. At least light/dark themes, which may not really be the fanciest of choices

      • h3ndrik@feddit.de
        link
        fedilink
        arrow-up
        0
        ·
        8 months ago

        I’d be happy if people just cut down on advertising Chrome/Firefox and LibreOffice via Flatpak to new users. They should use the packaged version. That’s why we have distributions, to make the whole system a smooth experience and everything tie together.

        Flatpak is slowly getting there and I think at least some distros have it preconfigured so the default GTK themes are in place.

        Ultimately, I’d like sandboxing to be available natively in Linux, at least for desktop applications. And we can talk about a packaging format that is available to the user, allows pulling software directly from the upstream project, includes libraries and runtimes.

        • Pantherina@feddit.deOP
          link
          fedilink
          arrow-up
          0
          ·
          8 months ago

          Yes SELinux confined users or apparmor could allow sandboxing apps the same way as flatpaks.

          On 2GB of RAM systems that would make a lot of sense.

          Chromium cant use its native sandbox, Firefox supposedly can.

          But Librewolf and more should be used as Flatpak, unless you need multiple apps to chat between (native messaging) which doesnt work yet, its way more stable.

          • h3ndrik@feddit.de
            link
            fedilink
            arrow-up
            0
            ·
            edit-2
            8 months ago

            Yeah, I think we should extend on the sandboxing features like AppArmor, SELinux and Flatpak for desktop use. Look at MacOS and Android and what they’re doing for desktop users. That is currently not the Linux experience. Ultimately I’d like my system to have an easy and fine grained system to limit permissions. Force third-party apps to ask permission before accessing my documents or microphone. have sane defaults. make it easy to revoke for example internet access with a couple of clicks. make it so I can open an app multiple times. and have different profiles for work, private stuff and testing. This should be the default and active in 100% of the desktop applications. And apps should all use a dedicated individual place to store their data and config files.

            Librewolf and more […] used as Flatpak, […] its way more stable.

            That’s just not true. I’ve been using Linux for quite a while now. And I can’t remember my browser crashing in years, seriously. Firefox slowed down a bit when I had 3000 tabs open, but that’s it. How stable is your Flatpak browser? Does it crash minus 5 times each year? How would that even work? And what about the theming and addons like password managers I talked about in the other comment? Use the distro’s packaged version. It is way more stable. And as a bonus all the edge-cases will now work, too.

            • Pantherina@feddit.deOP
              link
              fedilink
              arrow-up
              0
              ·
              8 months ago

              Most things already work. You know, desktops need to start with that, they need to implement popups for these permissions. And I guess apps also dont ask for permissions yet (like they do with Pipewire access), they just take it or fail.

              So its again a problem of adapted apps.

              Storage is all stored in ~/.var/app/ and could be duplicated etc if you really want to. That would require some hacking, but you could have multiple profiles for apps. Tbh this is not hard to do at all, just rename the app folder to “appname-profile” and rename the active folder back to the apps name.

              A GUI for that would be interesting.

              Browsers are a big example of good native packaging, as they get most attention. But for example on Debian, or Ubuntu, or many other platforms, I would prefer to use Flatpak Firefox (if firefox didnt have their deb repo now).

              Chromium is hacky as Flatpak as the Sandbox is imcompatible and needed to be replaced.

              For firefox there is no statement about this, hopefully soon. I use native browsers for the same reason as you.

    • GravitySpoiled@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      8 months ago

      Flatpak is the best solution.

      Password manager is usualy an add on.

      Themes not applying is wrong packaging, not flatpaks fault.

      Flatpaks limitations are real but you should install as flatpak first and if not working, then use the native package or nix. And limitations in flatpaks should be advertised.

      • h3ndrik@feddit.de
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        8 months ago

        Hehe, No. It’s the sandboxing.

        But with this approach you take over the answering questions to newbies… Why doesn’t the webcam show up in the videoconferencing? Why doesn’t my GTK / QT themes apply to some software and it’s a 2 page tutorial with lots of command line commands to fix that? Why can’t I install Firefox add-ons and on Windows and MacOS everything just works? Why is Linux so complicated and regularly stuff doesn’t work?

        I had this argument multiple times now. There is an easy solution: Do it the other way around until you know what you’re doing and about the consequences. Distributions are there for a reason. They put everything into one package and do testing to make sure everything works together. They provide you with security patches if you choose the right distro. LibreOffice and a Browser even come preinstalled most of the times. If you do away with all of that, it’s now your job to tie the software into your desktop, your job to handle the sandboxing if there is addons that need to pierce the sandbox. Your job to make sure the Flatpak publishers do quick updates and keep the runtimes up-to-date if a security vulnerability arise within an used library…

        I’m not directly opposed to using Flatpak. I’m just saying there are some consequences that aren’t that obvious. In my experience hyping some of the newer technologies without simultaneously explaining the consequences is regularly doing a disservice to new users.

        • GravitySpoiled@lemmy.ml
          link
          fedilink
          English
          arrow-up
          0
          ·
          8 months ago

          Do you mean fedora not installing codecs by default and the flatpak version of firefox has it bundled, i.e. just works?

          I don’t want to argument with you about that. If something doesn’t work as expected or intended, you’ve done a bad job. Stuff not working on linux isn’t exclusive to flatpak. It’s the fault of maintainers if people complain about a flatpak version compared to distro package.

          More people have to use flatpak and report the bugs they experience. The more people focus on flstpak the less infancy bugs will appear.

          I’ve got only recent runtimes installed. There’s no old runtime. I understand your concern though, but it’s less of a problem for maintained software. Moreover, you’ve got the same problrm for other package manager. Flatpakcan even improve upon this because it’s bundled.

          There’s also a distinction to be made if it’s an official distribution channel or if someone else packaged it.

  • nintendiator@feddit.cl
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    6 months ago

    Eh, I’ve always felt these solutions are complementary, or supplementary, rather than a “versus”. Each one, in particular cases, covers gaps the others can’t cover. The only one that’s unneeded is Snap.

    For example, I like Flatpak. I like that I can get software from an authorized hub, much like with a package manager. I like that the releases of the apps in the hub are mostly well documented.

    But no matter how nice Flatpak seems to be, its overreliance on “portals” and “buses” and “seals” comes associated with trying to over-engineerize my system too much for its own good. Every app I have ever tried on Flatpak, for example, doesn’t support audio, apparently because I have the godly, eternal, battle-tested ALSA and not the manchild’s crap that is PulseAudio. But since apparently PulseAudio is the GNome / Microsoft approved way to do audio on Linux, I’m supposed expected to have it. What’s next? systemd-flatpakd?

    OTOH, I picked up the AppImage for Freetube and not only do I get audio but it loads and runs noticeably faster than the Flatpak version. And since it’s an official release I know where can I trustably get an update from. Literally no downsides!

    But I sure as hell am not going to go for an AppImage for an app from which I expect more integration with my desktop activity, such as say a code editor or an advanced image / model viewer. Not if I can help it. Because I am going to be expecting to be able to stuff like drag and drop, have a correct tray icon, etc.

    So that means I have to keep an eye on both solutions.

    Hey, at least I’m avoiding Snap!

    Now if there’s an AppImage for Steam somewhere… maybe…

    • Pantherina@feddit.deOP
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      6 months ago

      You got me in the first part XD

      No joking, apart from that

      But since apparently PulseAudio is the GNome / Microsoft approved way

      I think I understand your point.

      Pulseaudio is outdated, Pipewire AND Pulseaudio are now needed. Maybe also just Pipewire, and you can somehow fake Pulseaudio?

      I never used a system without Pulseaudio, and Fedora has both (?) Or just Pipewire.

      Pulseaudio is the old stuff that apps want to use, pipewire is the new cool stuff (I recommend qpwgraph) which allows like everything.

      Aaand it is not overcomplicated, it isolated apps and introduces a permission system. Privileged programs that channel the requests and permissions, and sometimes need user interaction. Its actually less chaotic, the problem simply is that Flatpak ALSO tries to run all apps everywhere. And apps are mostly not up to date, so Flatpaks have randomly poked holes everywhere.

      Today I worked on hardening configs for my apps. I maintain a list of recommended ones here. I will just put my overrides in my (currently still private) dotfiles, will upload them some day.

      I am for example now Wayland only. Not all apps want to, but with the correct env vars (which I just globally set for all flatpaks, hoping it will not mess with anything), all apps use it.

      This makes the system way faster, and applying different vars on the apps is very easy with Flatpak.

      Literally no downsides!

      Not true. It still has no updating mechanism, the binary may be official, but the rest are random libraries that may not be well versioned or controlled, etc etc.

      The post is specifically about upstream supported Appimages, while Flathub is mainly maintained by the same 4 peolple (it is crazy). The request is for upstream devs to maintain Flatpaks.

      But for sure not everything is nice. Runtimes are too huge, outdated apps cause huge library garbage, downloads are inefficient, …

  • drwankingstein@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    oh boy here we go I strongly disagree with this article

    While complex .tar archives (like firefox) may seem messy, they integrate many different things. An installer script takes care of placing a .desktop entry, you can have an updater script, a LICENSE, README and more. Those are all missing with Appimages.

    .tar ARE messy, sometimes they don’t work right, dep conflicts, etc. An installer script can be shipped with an appimage anyways. Moot point IMO

    Apps installed with the system package manager get their .desktop Entry in /usr/share/applications, installed Flatpaks get their entry linked to ~/.local/share/flatpak/exports/share/applications/, user overrides and other installs can be put in ~/.local/share/applications/.

    Appimages have no desktop entry, so they have (currently) no icon on Wayland and they don’t appear in your app list. Desktop entries are a standard, used by everytthing but Appimages.

    see above

    Instead users follow strange habits like placing the files on their desktop, which is a highly discouraged “Windows workflow” (symbolic image) and not even supported on many Desktop Environments, most notably GNOME.

    Who discourages it? I personally prefer this myself, lack of desktop icons is a common complain for stuff like GNOME…

    This is both a usability and a security issue. Traditional Linux apps, even if they are cross platform, don’t have updater services, as package managers are way better at doing that.

    I disagree that this is better. A personal issue but I Much prefer when apps can update themselves.

    This means, packing as an Appimage either requires to implement an updating service, on a platform that doesn’t need that, or to have no updates at all.

    Instead users need to follow an RSS feed, get a mail, or manually check for updates, which is horrible UX. Then how do they update?

    Is this really a massive issue? There have been appimage stores in the past. Self updating appimages really isn’t that hard either. If this was a massive issue, you could do something like obtanium for android which could easily automate the process.

    Appimages don’t even have a central place where you can find them, not to mention download them. This is extremely insecure. Modern Application stores and every well made Linux repository uses cryptographic (mostly gpg) verification, which secures the authenticity of the software. You can be sure you downloaded the real package.

    I’d argue it makes little difference. But yes, Downloading things from the internet is more unsafe then downloading from a repo or a “curated” service. So we can grant one here.

    There is no updating mechanism. On Android you may also update by downloading .apk files, but once installed, the .apk needs to be signed with the same key, otherwise updates are blocked. With Appimages… you just delete the old .appimage file, download the new one, change the name to remove the version and hope your .desktop entry didn’t break.

    This is how you get malware.

    the risks seem blown out of proportion here. As long as you are downloading from the same place, the risks are significantly smaller in reality, not gone, but smaller.

    They are not well maintained

    There is a well known “bug” on modern Ubuntu, where Appimages lost their “works on every Linux Distro”, because they are built for the outdated libfuse2, while Ubuntu now uses libfuse3. The fix is to install the outdated version of libfuse (!), and this is still not fixed.

    An application format, that is incompatible with the latest version of its core dependency, is broken.

    This is a very minor issue, i’ve had way more issues with traditional repo packages then I have had with appimages.

    Lack of Sandboxing …

    I find this to be a benefit myself, I have had countless headaches with flatpak applications and their sandboxing. everything from devices not being recognized, weird storage issues and more.

    Random location …

    Another moot issue. $HOME/.local/bin is an XDG standard, so unless we pretend that XDG standards aren’t “one of the major standards” this is just wrong. https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

    Duplicated libraries

    Appimages bloat the system. They include all the libraries they need, and unlike system packages or Flatpaks, they don’t share a single libary. If users would really install every Software as Appimages, they would waste insane amounts of storage space.

    This also completely discourages efficient and up to date packaging, and the attached risk of outdates libraries is hidden away in that .appimage archive.

    and? When you need only a couple appimage files, space I find is smaller then flatpak, it only becomes when you need a lot of applications.

    Appimages are not needed Flatpak solved many Linux desktop issues at once …

    None of these provide reasons as to why appimages aren’t needed. Appimages still offer a lot, for one I can just download and run it I don’t need to worry about installing and uninstalling application when I just want to try it, I don’t need to muck about trying to get an app into flathub or starting my own repo, when a user has a problem, I can just tell them to run the new appimage instead of trying to get them to compile it.

    Appimages also let me do fine grained control over the dependencies. No unexpected runtime updates, I can compile the deps with flags/features I want to support, and disable flags/features I don’t want to support, Users don’t need to download a stupid appstore or use CLI (not a single appstore i’ve used to date isn’t hot garbage, I hope cosmic-store will be different).

    • GenderNeutralBro@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      I agree with much of this. However, regardless of which platform you’re on. it’s best to follow the design patterns of that platform.

      Putting binaries on your desktop is not in keeping with Linux design patterns, nor are self-updating apps. I think those are fair points.

      Having dozens of apps all using their own update mechanism introduces unnecessary complexity, which can be exploited. This has been a problem on Mac and Windows over the years. On Mac, for example, a common solution to this is the Sparkle framework, which devs can use in their app to manage self-updating; but Sparkle itself has been exploited, so then you have apps out there running god-knows-what-version of Sparkle in their bundles, leaving users vulnerable with no good way to identify or remediate it. This is why I typically disable any self-updating feature in any apps I use.

    • Pantherina@feddit.deOP
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      8 months ago

      Dont knoe where user installed tar archives (with statically linked binaries or including deps) would have dep conflicts, maybe if they are not statically linked.

      The self updating stuff and desktop icons is personal opinion and not the common way on Desktop Linux, so I skip that.

      you could do something like obtanium for android which could easily automate the process.

      That is called a package manager, with a repo, with gpg signing etc. On Android (which I mentioned) updates are secure. Let alone the point that appimages are not updated in a regular way, they are just replaced.

      I’d argue it makes little difference. But yes, Downloading things from the internet is more unsafe

      No the difference is huge. If you are used to downloading software from websites, a faked website can easily lead to downloaded malware. Flathub can be added with a click and flatpak is included in distros, which means no hunting on the internet and no accidental clicks.

      And as I said, until nobody downloads .flatpak packages online, and there may be an occasion where this is normal behavior, people will believe malware links are legit.

      the risks seem blown out of proportion here. As long as you are downloading from the same place, the risks are significantly smaller in reality, not gone, but smaller.

      Appimages are distributed everywhere, just as .exe files for Windows. This means they are favored by developers used to Windows and Mac, and those will not add them to a repo instead.

      So a faked website of whatever etcher or something is easy.

      The fact that Linux malware is not a thing, while Appimages clearly give the headstart for that, is a miracle.

      I find this to be a benefit myself, I have had countless headaches with flatpak applications and their sandboxing. everything

      Flatpaks are not secure because their sandboxes are weakened to not have such issues. This is due to apps not following secure standards, and until that is fixed they are insecure or broken or both. (Apps need to write configs in the container, they should use portals etc.)

      I maintain a list of flatpak apps following modern standards, which is a small portion but getting better.

      Linux is only somewhat secure because everything is FOSS and comes from repos.

      This is broken by appimages, that can easily distribute malware and thus fix the “my malware is not running on that distro” issue.

      Every software that can write to your .bashrc can easily catch your sudo password.

      Another moot issue. $HOME/.local/bin is an XDG standard, so unless we pretend that XDG standards aren’t “one of the major standards” this is just wrong.

      Yes linux experts would put them there. As mentioned in that text malware would also install itself there, so on secure systems this should be only writable by root/ some elevated group privilege.

      But apart from that users put them on the desktop, or in some random folder, I mean that dir is hidden for a reason.

      Or put it in that PATH and then link to the desktop, resulting in a broken link when you remove the app.

      When you need only a couple appimage files, space I find is smaller then flatpak, it only becomes when you need a lot of applications.

      If something is not scaleable its not a good concept. The fact that you will only install a couple of appimage apps is enough proof.

      On modern atomic distros users can rely purely on flatpak.

      Btw see the linked dedup checker. You may download more dependencies but they are linked between each other and not actually take up so much space.

      I don’t need to worry about installing and uninstalling application when I just want to try it

      We need to overthink those habits. You dont just “try an app”, you run unsandboxed code from an unverified origin. As mentioned above, this could be totally fine, and also add a function to your bashrc that catches your sudo password (the next time you use it) and sends it to a server.

      The secure way to do that is completely unpractical.

      1. Get a GPG app or use the cli, create a personal key. Secure the access permissions, as gpg always complains on Fedora for example.
      2. Hunt the internet for the gpg key of the dev
      3. Look for at least another source of that key like GrapheneOS does it
      4. Compare those keys hashes using cli or some app
      5. When correct, load the key into gpg/kleopatra/kgpg
      6. Verify the key with your internal key (yeah gpg is overcomplicated)
      7. Download the appimage, and a signed hash (most of the time its done like that)
      8. Verify the signed hash
      9. Sandbox the appimage using bubblejail (doesnt work) or firejail (no idea if it works, and its insecure)
      10. Repeat on every damn update (if it doesnt have a builtin updater)

      This is unusable. And repositories do this automatically without anything you need to do. For sure you could “extra check the website” and say "

      Also app data will be everywhere, often in its traditional location, while there is no package manager at all to delete them. Flatpaks store all their stuff (when devs care and not just ignore that, cough Cryptomator) in their container and data can be easily removed during uninstallation, GUI stores show a popup to delete data and I also made a small script to do that.

      And that “try it out” app will either have no desktop entry or that entry needs to be manually and will be still there after uninstalling.

      I don’t need to muck about trying to get an app into flathub or starting my own repo, when a user has a problem, I can just tell them to run the new appimage instead of trying to get them to compile it.

      This may be a reason, but this is only for testing then. But for sure, when its a small project, getting it on Flathub may be much efford.

      I can imagine the developer experience is easiser. Flatpaks are simply very “defined” and need all that metadata and more to be complete. But needing to use available runtimes is a good thing mostly, its basically supporting a specific distro.

      Flatpak through CLI is fine (I would like to have a standalone small store just for flatpak), Discover is nice too. The Linux Mint store also seemed fine but not much experience. (Linux Mint has some Wayland support now, so there is a secureblue Cinnamon spin, have to try that). The Cosmic store is just a stub currently, lets see!

      Cheers!

  • GlenTheFrog@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    Totally agree with basically every point here. You hit the nail on the head. App images are the .exe’s of the Linux world and I don’t understand how someone can say they love app images but hate Window’s portable exe’s. Even Windows doesn’t have nearly as many portable executable as they once did. And when they do, most people (even those who prefer app images) prefer an exe with a Windows installer.

    Anyways, this is all to point out why I avoid app images if at all possible

    • Tattorack@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      As someone who didn’t have a computer and had to install everything on a USB drive at some point, I absolutely LOVE portable .exe’s. Don’t see why anyone would have a problem with it. Don’t see a problem with aopimages either.

  • TheAnonymouseJoker@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 months ago

    I do not agree. AppImages can be double clicked and executed. They are not a pain to use. I have a few dozen AppImages besides a few Flatpaks and plenty native packages on Debian. Comfortable setup that carried over from Ubuntu LTS.

    This poster advertises GrapheneOS propaganda, and I never take those security weirdos seriously anyway, so either way I do not consider their security arguments as valid. All of these people have a common theme – pushing people towards becoming dependent on them, their “repositories” and apps, forming cults around it and becoming self-approved security gurus and dishing out moronic advice.

    If there was a way for these people to be able to rebrand one of the non-native packaging formats, they would shill the fuck out of it, just like GrapheneOS.

    • yukijoou@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      AppImages can be double clicked and executed. They are not a pain to use.

      i can understand that, but flatpaks are easier to upgrade and automatically integrated into your package manager, which (i believe) isn’t as straight forward for appimages. also there’s one major repo where you can find most apps (flathub) making app-hunting less daunting i feel like.
      also, once your app is installed, it’s always in your system menu, so that doesn’t change much in the long run

      Comfortable setup that carried over from Ubuntu LTS.

      can’t you carry over flatpaks as well? you can probably copy /var/lib/flatpak or wherever they store their stuff from one system to another, or failing that, save all the app IDs you have installed, and re-install them onto your new system, backing up ~/.var to keep all your data!

      • TheAnonymouseJoker@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        8 months ago

        I preferred a clean slate Debian installation. I had other Flatpaks with doubled version dependencies as well, which I got rid of. I believe that we should opt for the most frictionless workflow, and use best tool for a job. (Of course 🖕 to anti-privacy stuff as much as feasible.)

        Two nice Debian+Windows 7/10AME machines with lots of privacy, solid security and a great amount of freedom😌 feels like Pareto frontier is achieved, but still want to see if minimal modifications can make things even better, so I could update my Linux/Windows computing guide.

  • Tiger Jerusalem@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 months ago

    Appimages are awesome for the regular user. Single file, just double click to run anywhere. Snap and Flatpak should die a quick death and all the work should be used to improve Appimages. There’s no other concept for the end user as simple and clear as this.