UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Electron apps on Ubuntu Touch

    Scheduled Pinned Locked Moved General
    10 Posts 6 Posters 1.1k Views 3 Watching
    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.
      • D Offline
        db579
        last edited by

        Is there any way currently to install electron apps that run on desktop Ubuntu on Ubuntu Touch (on a pinephone specifically).

        Appreciate the performance would likely be very poor with the low ram and non-touch optimized interface but are there any technical blockers to doing it?

        AppLeeA 1 Reply Last reply Reply Quote 1
        • AppLeeA Offline
          AppLee @db579
          last edited by

          @db579
          Hi the way to achieve your goal is by utilizing Libertine.
          Not sure it will work nicely but Libertine is made so we can run desktop apps with UT.

          1 Reply Last reply Reply Quote 1
          • ValenoernV Offline
            Valenoern
            last edited by

            Libertine on pinephone was returning errors trying to create even an example container the last time I tried to use it

            https://gitlab.com/ubports/community-ports/pinephone/-/issues/133
            (gitlab isn't working enough to find the main issue but that's one)

            1 Reply Last reply Reply Quote 0
            • pparentP Offline
              pparent
              last edited by

              Is there any chance we will be able to compile/run electron apps natively in Ubuntu Touch, with Mir2.0 through Wayland?

              ikozI 1 Reply Last reply Reply Quote 0
              • ikozI Offline
                ikoz @pparent
                last edited by

                @pparent VSCodium has been working since 16.04. I think it's in the store.

                May the source be with you

                pparentP 1 Reply Last reply Reply Quote 0
                • pparentP Offline
                  pparent @ikoz
                  last edited by

                  @ikoz said in Electron apps on Ubuntu Touch:

                  VSCodium

                  But how does it work? Does it uses Xmir? It requires to be unconfined, I see.

                  Currently I cannot compile and run natively any electron app, as an UT app that runs seamlessly right? In particular I cannot run natively Signal-Desktop, which would be a quite important addition to Ubuntu Touch.

                  ikozI 1 Reply Last reply Reply Quote 0
                  • ikozI Offline
                    ikoz @pparent
                    last edited by

                    @pparent It's open source: https://github.com/fredldotme/vscodium-click-packaging.
                    From quick look it bundles all the needed libraries in the click and is unconfined, so not ideal,

                    May the source be with you

                    arubislanderA 1 Reply Last reply Reply Quote 0
                    • arubislanderA Offline
                      arubislander @ikoz
                      last edited by

                      @ikoz I don't think the VSCode click is unconfined because it is an electron app. I think it is unconfined because it is a code editor which needs to be able to access different parts of the filesystem to be useful.

                      πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                      Happily running Ubuntu Touch
                      JingPad (24.04-1.x daily)
                      OnePlus Nord N10 5G (24.04-2.x daily)
                      PinePhone OG (20.04)
                      Meizu Pro 5 (16.04 DEV)
                      Google Pixel 3a

                      ikozI 1 Reply Last reply Reply Quote 0
                      • ikozI Offline
                        ikoz @arubislander
                        last edited by

                        @arubislander IIRC, all desktop apps based on a framework other than Qt are currently uconfined, but Mir 2 should fix that (see the discussion around the problem for uWolf).
                        If it were unconfined just to access the filesystem directly (without content hub), it would use the separate read/write access policy.

                        May the source be with you

                        arubislanderA 1 Reply Last reply Reply Quote 1
                        • arubislanderA Offline
                          arubislander @ikoz
                          last edited by arubislander

                          @ikoz said in Electron apps on Ubuntu Touch:

                          IIRC, all desktop apps based on a framework other than Qt are currently uconfined, but Mir 2 should fix that (see the discussion around the problem for uWolf).

                          This is not the case. uFirefox on Noble, for instance, is strictly confined.

                          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                          Happily running Ubuntu Touch
                          JingPad (24.04-1.x daily)
                          OnePlus Nord N10 5G (24.04-2.x daily)
                          PinePhone OG (20.04)
                          Meizu Pro 5 (16.04 DEV)
                          Google Pixel 3a

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