Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Snap and Flatpak apps

    General
    6
    20
    2256
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      prog-amateur last edited by

      Hello, I am interested to install UBports on my Nexus 5, however I would like to know if it was possible to install Snap or Flatpak applications there?
      I would like to install Kodi (ideally 2 different versions for specific needs), I searched here and there, but I didn't find the answer to my question. Any ideas?

      Thank you very much.

      1 Reply Last reply Reply Quote 2
      • dobey
        dobey last edited by

        It is not possible to install apps packaged as snaps or flatpak. You can install apps from the Open Store, which are clicks.

        1 Reply Last reply Reply Quote 0
        • P
          prog-amateur last edited by prog-amateur

          Too bad to be restricted to click apps (even if I think it is not on purpose), thank you anyway for your reply. I hope one day it will be more open to the Linux world, because Linux has many good apps, and Snap & Flatpak are a good thing.

          dobey 1 Reply Last reply Reply Quote 0
          • H
            hummlbach last edited by

            I think support for snaps is planned. And ofc everyone is welcome to contribute and speed up the progress.

            1 Reply Last reply Reply Quote 3
            • dobey
              dobey @prog-amateur last edited by

              @prog-amateur said in Snap and Flatpak apps:

              Too bad to be restricted to click apps (even if I think it is not on purpose), thank you anyway for your reply. I hope one day it will be more open to the Linux world, because Linux has many good apps, and Snap & Flatpak are a good thing.

              It is intentional. Snap at least requires kernel features, which did not necessarily exist in 3.4 or 3.10 kernels, which many devices must run on. Snaps and Flatpaks are also designed around some separate and somewhat different purposes, and most things packaged for them are not usable on a phone at all.

              Supporting arbitrary packaging systems is not a good thing. Click works best here because it is fit for purpose, while the others are not. At some point maybe it could be possible to install such packages in a libertine container or such, but really they are not a good fit for UT/Unity8 host system.

              ? 1 Reply Last reply Reply Quote 1
              • ?
                A Former User @dobey last edited by A Former User

                @dobey

                Isn't the kernel being used for the "Linux" UBport to PinePhone and Librem5 much later...?

                dobey 1 Reply Last reply Reply Quote 0
                • dobey
                  dobey @Guest last edited by

                  @3arn0wl said in Snap and Flatpak apps:

                  Isn't the kernel being used for the "Linux" UBport to PinePhone and Librem5 much newer...?

                  The goal is to use the upstream kernel there, yes, but for all the work it would take to make snaps and flatpak work properly on the host, it's a waste of time if it only works on one or two devices, when hopefully UT will be usable on dozens when the current halium blockers get resolved.

                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @dobey last edited by

                    @dobey unless, of course, the more attractive way forward turns out to be the purer Linux route.

                    dobey 1 Reply Last reply Reply Quote 0
                    • dobey
                      dobey @Guest last edited by

                      @3arn0wl I don't know what you mean by that. At that point, it would no longer be UT though, and we would have failed.

                      If what you want is a "purer" linux on your phone, there is PostmarketOS for that, or you can build whatever you want and install it on your phone. But it's going to be a very poor experience.

                      ? 1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @dobey last edited by

                        @dobey
                        I meant less dependent on Android...

                        I think the PinePhone / Libem5 projects are really important for us... Devices built for Linux. This a real opportunity for us to showcase the distinctiveness, and the strength of what we've got to offer*.

                        They might well prove to be quite popular, which would encourage further hardware efforts.

                        • which takes us back to the topic of Snaps...
                        dobey 1 Reply Last reply Reply Quote 0
                        • dobey
                          dobey @Guest last edited by

                          @3arn0wl But being able to run an upstream kernel, and supporting snaps/flatpaks/whatever are completely separate things.

                          A couple phones being able to run on upstream kernel does not an ecosystem make, when we have dozens of phones to support that do not. There are a whole massive host of problems with making snaps and flatpaks work reasonable under unity8 to deal with beyond the simple kernel issues.

                          The only reasonable way I see us being able to support them within any reasonable time frame, would be on devices which run upstream kernel, and only under libertine. And that's after we get new unity8/mir, and port everything over to systemd.

                          ? Aury88 2 Replies Last reply Reply Quote 0
                          • ?
                            A Former User @dobey last edited by

                            @dobey said in Snap and Flatpak apps:

                            The only reasonable way I see us being able to support them within any reasonable time frame, would be on devices which run upstream kernel, and only under libertine. And that's after we get new unity8/mir, and port everything over to systemd.

                            πŸ™‚ That seems to be a decent roadmap, from someone who knows immeasurably more about this than I ever will.

                            Flohack 1 Reply Last reply Reply Quote 0
                            • Flohack
                              Flohack @Guest last edited by

                              @3arn0wl The question is if this is a roadmap we should follow, given a lot of other very urgent things to do. But we shall see...

                              My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                              ? 1 Reply Last reply Reply Quote 0
                              • ?
                                A Former User @Flohack last edited by

                                @Flohack

                                Yes, there always seems to be a mountain of stuff to do and, as you say, some of it is very urgent. Respect to all the devs for suiting up to face it.

                                1 Reply Last reply Reply Quote 0
                                • Aury88
                                  Aury88 @dobey last edited by Aury88

                                  @dobey why under libertine?

                                  dobey 1 Reply Last reply Reply Quote 0
                                  • dobey
                                    dobey @Aury88 last edited by

                                    @Aury88 said in Snap and Flatpak apps:

                                    @dobey why under libertine?

                                    Becuase snap/flatpak are not direct replacements for everything click does, and almost everything packaged in them is not suitable for mobile use; as they are built to run under Xorg. Therefore it would make more sense for them to be treated that way, so that they get all the same integrations as provided for libertine.

                                    Aury88 1 Reply Last reply Reply Quote 0
                                    • Aury88
                                      Aury88 @dobey last edited by

                                      Hi @dobey, so you have to put a "container" (snap) in another "container"/sandbox (libertine) only because most of the package on it are not suitable for smartphone and its display server?
                                      I thought the libertine purpose was mainly to permit the installation of deb packages because of their confinement incompatible with the rest of the smartphone os (xorg build-ed apps I think can be handle by xmir) . and snaps for a confinement POV seems to me more similar to clicks (and for some aspect more strict) than to deb, but I'm not a developer so probably here I'm wrong.
                                      from your last sentence don't seem to me that putting snapd in libertine is a mandatory step, but mainly as a matter of order (keep separate smartphone apps from desktop apps); isn't possible to have snapd in parallel/external to libertine and with the same "integration" or, put in a provocative way, why is not possible to use snapd as a substitute to libertine to install desk software ( apart for the compatibility problems between snapd and the kernel/init used in UT)?
                                      I was not thinking about snap as a click substitute, but this is surely an interesting and instructive discussion, so I ask you if can you help me understand what are the things that snap can't do/replace and that click does?
                                      thank you!

                                      ? dobey 2 Replies Last reply Reply Quote 0
                                      • ?
                                        A Former User @Aury88 last edited by A Former User

                                        Is it the feeling that the Libertine container will run better once Unity8/Mir is developed and things are ported over to systemd? And that Xorg apps will run / run better in it? I realise that although there are a lot of snaps available, there are many more apps which are .deb1.

                                        Purely from a selfish user's point of view, it would be good if they were as easy for us to download as the click apps currently are.

                                        1 I also understand that many of those apps would only be usable with a monitor, keyboard and mouse connected, and that most of them won't be converging.

                                        1 Reply Last reply Reply Quote 0
                                        • dobey
                                          dobey @Aury88 last edited by

                                          @Aury88 I don't know where you got this idea, but snap is not a container based system.

                                          The purpose of libertine is to provide a container for "legacy" (aka X11) apps, with integration to OSK, copy/paste, etc… and to confine them away from the rest of the system. Snaps and flatpaks are almost all legacy apps (or in the case of snap, headless server apps).

                                          It is not possible to use snapd as a substitute for libertine, because it is not one. However, I did not say that it was not possible to use snapd outside of libertine. I merely stated it is not sensible.

                                          Snapd nor flatpak work anything remotely close to how clicks work, though. Therefore the same methods cannot apply.

                                          Snapd does not use apparmor profiles for confinement as click does, for example. It also uses an "interfaces" system, which is a hard-coded list, and therefore very difficult to make changes to. The store is also controlled by Canonical, and we cannot set up our own store easily; and doing so would degrade the relationship we do have with Canonical and our allowed use of the Ubuntu trademarks.

                                          Also, snappy was designed around the needs of IoT devices, not end users. The support for end user applications is all an afterthought, and many things do not work as well as they do with clicks.

                                          It's a whole lot of work to support something, that basically provides no benefit.

                                          Aury88 1 Reply Last reply Reply Quote 1
                                          • Aury88
                                            Aury88 @dobey last edited by

                                            @dobey thank you for the interesting explanation!

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post