I love Flatpaks, the programs are nicely separated so they don’t interfere with each other. They also don’t have flaws like Snap’s low performance or Nix’s complexity.

But being limited to only graphical apps seems like a real drawback. If one wants to use Flatpaks as their primary package manager there have to be some awkward workarounds for cli programs.

E.g., the prime Flatpak experiene is supposed to be on immutable distros like Silverblue. But to install regular cli programs you are expected to spin up a distrobox (or toolbox) and install those programs there.

Having one arch distrobox where I get my cli programs from will not work, as the package entropy over time will get me the very dependency issues that Flatpak wants to solve.

So what is the solution here? Have multiple distroboxes and install packages in those in alternation and hope the boxes don’t break? Use Nix alongside Flatpak? Use Snaps?

  • Skull giver@popplesburger.hilciferous.nl
    link
    fedilink
    arrow-up
    4
    ·
    6 months ago

    It did for me, but I broke it somehow (I really need to reinstall my desktop). According to the Arch docs, the exports directory is added to /etc/profile

    As for why it’s not done upstream, this seems to be the thread where Flatpak’s considerations were mentioned: https://github.com/flatpak/flatpak/issues/3573

    I don’t want to auto-add the wrapper dirs to the real PATH, because such a modification is bound to break a lot of users setups.

    I don’t necessarily agree with them, but it should answer the “why” question.

    • AProfessional@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 months ago

      They are only aliases too. People will be disappointed if they expect it to behave like the unsandboxed command.