• caseyweederman@lemmy.ca
    link
    fedilink
    arrow-up
    1
    ·
    17 hours ago

    Huh. I don’t know enough about Flatpak, I guess repo owners get to make that call? Do Flatpaks have a preinst equivalent? Could you theoretically have an empty Flatpak that installs snaps at a system level? I guess it would need explicit permission to write to the filesystem, which kinda seems to be the opposite of the purpose of Flatpak.
    And like, even if that is possible, the Flathub maintainers would probably reject it on principle. So I’m imagining CanHub with an extra step in the installation instructions that gets you to pipe a curl’d script into sh, at which point, what’s the point?

    • ashx64@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      6 hours ago

      Flatpak recently got a method of preinstalling flatpaks.

      A flatpak cannot install a snap on your system. Apt can install a snap because when apt installs and updates packages, it can also run scripts as root. That’s insecure and potentially dangerous, so flatpak doesn’t have that ability.