Basically title.

I’m wondering if a package manager like flatpak comes with any drawback or negatives. Since it just works on basically any distro. Why isn’t this just the default? It seems very convenient.

  • Snoopy@jlai.lu
    link
    fedilink
    arrow-up
    71
    ·
    edit-2
    10 months ago

    There is some drawback. The main one : app can’t communicate with each other.

    Example firefox and his extension keepass. As keepass can’t communicate with firefox, you have to open both apps and switch their windows.

    You can use flatseal to manage communication between apps but that’s not an easy process and may prove a security issue if you don’t understand the technical jargon.

  • AMDIsOurLord@lemmy.ml
    link
    fedilink
    arrow-up
    65
    ·
    10 months ago

    1- It takes a lot of space. jUsT bUy a bIgGeR dRiVe --stfu I’m not going to spend money for you to waste it

    1- a) Everyone assumes you’re an American with 20Gbps symmetrical fiber optic. My internet can’t handle 2+ Gb downloads for a fucking 50 Mb app bro

    2- Duplicate graphics drivers. Particularly painful with Nvidia

    3- It puts a lot of security work with distro library trees straight into the shitter

    4- Horrendously designed system for CLI apps (flatpak run org.whocares.shit.app)

    5- Filesystem isolation has many upsides for security but also it can cause some pain (definitely nitpicking)

    • robojeb@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      10 months ago

      Where in America is there 20Gbps symmetrical fiber? Everywhere I know tops out at 1gbps if you are lucky that your ISP isn’t shit, and lots of areas are still on slow cable.

      In my area my options are 200mbps cable or 100mbps ADSL (which inexplicably costs more than the cable Internet)

      • S_H_K@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        4
        ·
        10 months ago

        Maybe is an hyperbole I have optic fiber straight to my door here and is 10gbps tops but usually it works around 80% of that with some conditions. And it’s not symmetrical I don’t recall the up speed tho.

      • samc@feddit.uk
        link
        fedilink
        English
        arrow-up
        2
        ·
        10 months ago

        Best I’ve ever had was like 60mbps down. Might be a budget thing though, I refuse to pay more than £30/month for internet

      • Russianranger@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        10 months ago

        Lived in 8 different states in the US - never had anything above 1 Gbps. Typically been 300-500 mbps, with only the past and current state state where I’ve gotten 1gbps. Poster is just assuming because we’re a first world country that we have good internet. We don’t. I hear Europe has better speeds than us.

    • shapis@lemmy.ml
      link
      fedilink
      arrow-up
      11
      ·
      edit-2
      10 months ago

      All of this. Plus often it just doesn’t work.

      And no. I do not want to blind fiddle with the permissions to fix it.

  • BrianTheeBiscuiteer@lemmy.world
    link
    fedilink
    arrow-up
    45
    ·
    10 months ago

    For me it’s lacking in user friendliness. Go easy on the downvotes if I’m doing it the hard way.

    • Flatpaks aren’t really single-executables. You have to use to the flatpak command to run them.
    • I can’t just say flatpak run firefox, I have to use the full app-id which could be quite long.

    Yes, I could make this simpler with scripts or aliases but how hard would it have been for Flatpak to automatically do this for me?

    • Miyabi@iusearchlinux.fyi
      link
      fedilink
      arrow-up
      16
      ·
      10 months ago

      I’m using KDE and when I download a flatpak it automatically creates a .desktop file. I think gnome does this too if I’m not mistaken. I do have to restart or relogin for it to put the file there but that’s not that bad IMO.

      • miss_brainfarts
        link
        fedilink
        arrow-up
        3
        ·
        10 months ago

        I’m on Endeavour xfce and the .desktop files are just there immediately. I never even knew this wasn’t the case on other systems

      • caseyweederman@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        10 months ago

        I think I’ve been having an issue with the Steam Flatpak where after updating, the .desktop file breaks. If not, my icon is broken for different reasons. Either way, I’ve been running Steam through the command line for ages.

  • rotopenguin@infosec.pub
    link
    fedilink
    English
    arrow-up
    29
    ·
    10 months ago

    The worst part of flatpaks is that they don’t get to see the actual path of files that they open. Instead, they get a /var/run/1000/blah proxy. The proxy is forgotten after you reboot, so any flatpak that memorized that path is holding a bunch of dead links.

  • kugmo@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    28
    ·
    edit-2
    10 months ago
    • overly verbose way to launch them in terminal
    • can sometimess not even respect your gtk/qt theming
    • sandboxing/permission system can lead to you trying to figure out which directory you need to give access to when you want to save file if it wasn’t preconfigured
    • uses its own libraries and not system libraries, want to play the hit new AAA game with steam flatpak? get fucked it requires a mesa commit that was merged 8 hours a go and you’re stuck on 23.0.4 and can’t use the git release.

    Flatpak probably has it’s specific uses like trying to use one piece of proprietary software that you don’t trust and don’t want to give it too much access to your system, or most GUI software clients having an easy way to install Discord on your Steam Deck (no terminal usage, Linux is easy yay), but native packages 99% of the time work better.

    • jbk@discuss.tchncs.de
      link
      fedilink
      arrow-up
      2
      ·
      10 months ago

      uses its own libraries and not system libraries, want to play the hit new AAA game with steam flatpak? get fucked it requires a mesa commit that was merged 8 hours a go and you’re stuck on 23.0.4 and can’t use the git release.

      Can’t you just install a git snapshot of mesa in a flatpak and use that? Then it’d be an upside

  • SethranKada@lemmy.ca
    link
    fedilink
    English
    arrow-up
    24
    ·
    10 months ago

    It’s great for user apps, gui apps, and sandboxing. It’s terrible for cli apps, libraries, development, and integration.

  • aberrate_junior_beatnik@midwest.social
    link
    fedilink
    English
    arrow-up
    22
    ·
    10 months ago

    I think its biggest weakness is also its biggest strength: isolation. Sometimes desktop integration doesn’t work quite right. For instance, the 1password browser extension can’t integrate with the desktop app when you use flatpak firefox.

  • jan teli@lemmy.world
    link
    fedilink
    arrow-up
    20
    ·
    edit-2
    10 months ago

    Some people don’t like it because it uses a bit more storage and can start a bit slower, (I think) they can’t be used for system packages, and I’ve also had some issues with theming

      • wildbus8979@sh.itjust.works
        link
        fedilink
        arrow-up
        6
        ·
        10 months ago

        Using flatpak on low end devices (like Linux phones), I can tell you from experience, the speed liss is noticeable. Specially for application startup. As is the resource overhead.

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

          That’s a fairly good point. On mobile startup can be crucial because sessions are short in comparison to desktop where you have longer sessions and startup time is negligable (even the slow startup times of snaps could be ignored for e.g. a video editing session)

          Low specs shouldn’t keep the community from moving into newer technology.

          • wildbus8979@sh.itjust.works
            link
            fedilink
            arrow-up
            3
            ·
            10 months ago

            Precisely. I’ve been playing with Mobian on a One Plus 6 (works great) and while I really like the idea of using mostly sandboxed app much like things work on Android, right now it certainly negatively impacts the experience.

      • acockworkorange@mander.xyz
        link
        fedilink
        arrow-up
        2
        ·
        10 months ago

        One thing I always wondered is whether libraries in memory would be duplicated or not. I have seen a lot of people talking about storage space which is cheap and shouldn’t really be the focus for desktops. But I haven’t seen anything about in memory usage.

          • acockworkorange@mander.xyz
            link
            fedilink
            arrow-up
            1
            ·
            10 months ago

            Me neither but I if we’re considering having all but the core of the distro in Flatpacks, this policy might mean Linux becoming less accessible to more modest configurations.

            Unless Flatpacks deal with it somehow like regular packages do. If two app packages contain the same library within (as opposed to packaged in a dependency), can Flatpack figure out they’re the same and share code memory between the two? For library packages with two apps depending on different versions of the same third party flatpack, does it assume the newer version can be applied to both, optimizing memory usage? If so, wouldn’t that break the premise of flatpacks?

            Can I convince my autocorrect that flatpacks and flapjacks are different things?

            Inquiring minds want to know.

  • clemdemort@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    10 months ago

    IMO yes but it might not be an issue for you, flatpaks work like windows standalone executables where each app brings all their dependencies with them, the advantage is the insane stability that method provides, the downside is the huge size the app will ultimately take, flatpaks are compressed and they don’t really bring all their dependencies with them (because they can share runtimes) but the gist of it is a flatpak is usually much heavier than a system (.deb .rpm .PKG) package.

    If you are ok with tweaking I recommend nix pkgs as they work on any distro and only take slightly more space than system packages. I have a terrible connection and low disk space, flatpaks aren’t something I can use on the long run.

    Oh and if you’re wondering flatpak >>>> snap > appimages (IMO)

    • Pantherina@feddit.de
      link
      fedilink
      arrow-up
      5
      ·
      10 months ago

      flatpaks work like windows standalone executables where each app brings all their dependencies

      No thats appimage. Flatpaks run on shared libraries and even different runtimes containing the same packages share those using deduplication

      https://gitlab.com/TheEvilSkeleton/flatpak-dedup-checker

      A Flatpak is exactly as heavy as a system app, just that on the system you already have some libraries installed.

      Initial download size is bigger, okay. And in general more downloads, I guess the deduplication happens on the disk.

      Its like, shared runtimes but also not. Its a bad situation tbh.

    • corsicanguppy@lemmy.ca
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      10 months ago

      flatpak >>>> snap > appimages

      I didn’t know we were ranking the horsemen of the apocalypse. Leave room for shitty supply-chain victims like cpan/composer/npm and other irresponsible shortcut tools that throw security out the window.

      • clemdemort@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        10 months ago

        In the case of NPM (don’t know enough about the others) it’s not a general purpose package manager, it’s only for node related packages.

        And yes I think ranking them is relevant Appimages are pretty terrible security wise(let’s download random executables on the internet yayyy!), snaps are getting better but used to be really terrible and to be fair NixPkgs aren’t that safe either.

        Flatpaks are pretty secure, they work well, the stack is fully open source and allows you to host your own flatpaks repos, as well as manage sandboxing parameters. If only they were lighter I could easily see them become the “Linux executable format”

    • MilkLover@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      10 months ago

      I think using AppImage like Flatpak is silly. It is perfect for keeping some programs on a USB drive for example, but not as a way of installed software.

    • corsicanguppy@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      10 months ago

      To say nothing of a signed manifest of contents. It’s like 1995-era package management was lost on the kids who built this dreck.

  • orcrist@lemm.ee
    link
    fedilink
    arrow-up
    15
    ·
    10 months ago

    For me, the question is why I should add an extra layer of complexity. If the things I use already work well using apt, and if most things are bundled in the default distro install, then my life is already good.

    This all depends on your software needs, if course. Some people are using a lot of new stuff, so the above setup leads to annoying situations.

    • Pantherina@feddit.de
      link
      fedilink
      arrow-up
      6
      ·
      10 months ago

      Flatpak is a distro on its own, but with original dev support. Its like a Linux Distro replacing others.

      So it adds complexity but with the potential to remove it from the OS. For example Libreoffice, Browsers, Thunderbird etc are huge and its a good approach to use official versions here.

      • AMDIsOurLord@lemmy.ml
        link
        fedilink
        arrow-up
        5
        ·
        10 months ago

        Then what’s the point in having different distros lol we don’t have duplication for the sake of duplication there are reasons why there are different distros, philosophies and packaging method. I see this mistake from many usually newer Linux users, there are different distros because there is a point in packaging the OS differently.

        Flatpak for example completely abandons makig apps use patched system libraries. Or having different packages for different init systems. Or , god forbid, supporting BSDs

        • Pantherina@feddit.de
          link
          fedilink
          arrow-up
          1
          ·
          10 months ago

          I dont know tbh. Flatpak is a bit like Android apps I think, but those apps only have a single OS to support.

    • YamiYuki@lemmy.kde.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Some developers don’t want to deal with building an app for multiple versions. Sure some DEBs can work without needing to deal with that, but some don’t.

  • Pantherina@feddit.de
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    10 months ago
    • no OS level components
    • duplicate libraries as some core apps (editor, filemanager, Desktop) cannot be flatpaks (yet?)
    • old runtimes etc. dont force developers to keep them updated. Often thats because or 3rd party packagers though
    • complicated packaging, I heard that the Flatpak builder is better for certain languages.
    • theming issues I heard (on Fedora Kinoite Wayland it just works, and I can also force themes per app)
    • bad permissions by default (best we have though)
    • bad run commands (this could easily be fixed, and I have a script for it)

    For OS components / packaging every part, Snaps may work, but for GUI apps they seem subpar and nobody really cares.

    Nix may be way better for installing just anything compartimentalized, but there is no permission system (thats why packaging is easier).

    But Flatpaks are really great overall, Bubblewrap, KDE Settings / Flatseal, Portals, official app support. Its really really important.

    • Justin@lemmy.kde.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      10 months ago

      complicate packaging, XML sucks (are there good editors or something?), I heard that the Flatpak builder is better for certain languages.

      What has XML got to do with it? Flatpak manifests are either JSON (not great but OK) or YAML, which is great.

      • kamiheku@sopuli.xyz
        link
        fedilink
        arrow-up
        19
        ·
        10 months ago

        YAML, which is great

        countries:
          - fi
          - se
          - no
          - dk
        
        => { "countries": ["fi", "se", false, "dk"] }
        
        • Justin@lemmy.kde.social
          link
          fedilink
          English
          arrow-up
          4
          ·
          10 months ago

          Probably JSON. I haven’t been involved in Flatpak for a long time but I’ve never seen XML. JSON is quite close to XML in it’s layout sometimes I find so easily mistaken.

  • corsicanguppy@lemmy.ca
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    10 months ago

    It ruins single source of truth for apps and their installed state. It hides installed state from standard enterprise tools.

    • Ullebe1@lemmy.ml
      link
      fedilink
      arrow-up
      6
      ·
      10 months ago

      That seems like a shortcoming in those tools, that I’d expect them to fix as Flatpaks are pretty commonplace.