Gradience, Flatseal, Loupe Image Viewer, and Resources running on Ubuntu 16.04

Firefox 118.0.2 running on Ubuntu 16.04

Door Knocker, Collision, and Cartridges running on Ubuntu 16.04

ASHPD Demo running on Ubuntu 16.04, showing a notification through XDG portals

According to Door Knocker, almost half of the portals are unavailable on Ubuntu 16.04, compared to only one unavailable on Fedora 39 with GNOME, which means Flatpaks running here may have more limited capabilities than usual.

  • Heratiki
    link
    fedilink
    English
    40
    edit-2
    9 months ago

    Ok, so it’s time for me to do some research on Flatpaks now. I’m an old schooler from Redhat days and haven’t kept up with the new stuff all that much.

    • qaz
      link
      fedilink
      31
      edit-2
      9 months ago

      Flatpaks is a distro independent way of installing apps, similair to snaps. However it does not require a proprietary backend like snaps do.

      It uses “runtimes” that contain the libraries that are required for the app, such as freedesktop, gnome, kde and elementary. Each app requests a specific runtime and version which prevents library conflicts.

      Although runtimes are shared the different versions can take up quite a bit of space. This is a common criticism of Flatpak and one of the major drawbacks compared to the distro’s native package manager. Another disadvantage is that the sandboxing can cause issues with the functionality of the app if it requires certain system functionality. Authors (and users) can configure which parts of the system to expose (dbus, files, network, etc) but sometimes this is done incorrectly (looking at you Discord) which can cause the aforementioned issues.

      One of the major advantages is that it simplifies the work for Application developers, they can target 1 system and don’t have to package the application and it’s libraries for each distro. It also means that the applications aren’t dependent on the distro’s for newer versions. You can use Debian stable with a version of an app that came out yesterday.

      I personally tend to use Flatpaks quite often except for software that is included in the distro by default and apps that have issues with sandboxing such as Steam and VSCode.

      • Dojan
        link
        fedilink
        English
        109 months ago

        Sounds a bit like docker and its containers?

        • TheEntity
          link
          fedilink
          179 months ago

          Yes and no. It’s much better suited for desktop applications. Try to run something playing audio in Docker. It’s doable but not pleasant in any way.

          • Dojan
            link
            fedilink
            English
            79 months ago

            Well yeah, I only meant it sounds like a similar idea, I’d be surprised if it was powered by docker.

          • qaz
            link
            fedilink
            3
            edit-2
            9 months ago

            It’s certainly doable to run desktop apps in containers, have you tried Distrobox?

            • TheEntity
              link
              fedilink
              39 months ago

              No, I didn’t. Looks interesting. Not something I’m looking for right now but I’ll keep it in mind.

        • qaz
          link
          fedilink
          29 months ago

          I’m aware about the deduplication but last time I checked it was still using roughly 30GiB of storage.

    • @LinuxSBC@lemm.ee
      link
      fedilink
      19
      edit-2
      9 months ago

      As well as running on all distros, it also provides other benefits:

      However, some applications don’t work as well because of the sandbox, but I think this will change with the rising popularity of Flatpak, as more developers will use portals instead of direct access. Also, there are some bugs and missing features, like how heavy use of the org.freedesktop.Flatpak portal for dbus causes a memory leak (https://github.com/flatpak/xdg-dbus-proxy/issues/51), but it’s overall pretty good. Most applications I use are Flatpaks.

    • @hottari@lemmy.ml
      link
      fedilink
      79 months ago

      Flatpaks are to distros what Alpine is for docker containers. A base for creating distro agnostic desktop applications. It’s really cool and has picked up quite some good support within the Linux community.

      • qaz
        link
        fedilink
        129 months ago

        I think that Flatpak being Docker for desktop applications would be a better comparison.

    • BoofStroke
      link
      fedilink
      English
      59 months ago

      Mint integrates flatpak seemlessly into its graphic package management and update tools.

      • Semperverus
        link
        fedilink
        English
        5
        edit-2
        9 months ago

        KDE’s “Discover Store” (gui package manager) also does as well, which is awesome. While I don’t like the idea of packaging system libraries with software due to the fact that they can and will sit out of date and hold on to vulnerabilities, I do like what flatpak is trying to achieve and the fact that we have a very solid leader in the area, putting the closed-source proprietary Snaps system firmly in second place.