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

    Custom builder for a library

    Scheduled Pinned Locked Moved App Development
    24 Posts 6 Posters 1.5k Views 1 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.
    • P Offline
      PerlMax
      last edited by

      I've finished a first small test application (a simple video player). You can find it under https://github.com/MaxPerl/pefl.maxperl

      All in all, it works pretty well. However, there are a few limitations:

      • I haven't yet managed to get the Wayland engine from efl to work (I'm hoping for Mir 2.x). This may lead to suboptimal performance (especially at the moment no hw acceleration), but more importantly, to an error with rotation. In landscape mode there is a well known Issue with Xwayland: Inputs on the right side of the screen do not work in landscape mode (see also the problem in uWolf, fix could come when this is merged: https://gitlab.com/ubports/development/core/lomiri/-/merge_requests/207). I also can't resolve it through settings X-Lomiri-Rotates-Window-Contents=false and/or X-Lomiri-Supported-Orientations=portrait at the moment (see ubports/development/core/lomiri#184)

      • Maliit virtual keyboard does not work at the moment. Apparently, there’s also a way for Xwayland apps to integrate this via the DBus interface. But right now, that’s too complicated for me. In the meantime, I’ve programmed my own little virtual keyboard (though it’s not really necessary for a video player. You can test it in the file-open dialog at the search field. Works pretty well for me).

      • I’m currently working on a connection to the Content Hub (at least receiving data from other apps would be nice). But it doesn't seem that straightforward if an app doesn't use Qt or QML at all. I've already tried launching the app via Qt/QML instead of a Bash script, but apparently that doesn't work with Xwayland apps? If anyone here has experience with this, I'd appreciate any suggestions. Maybe I’ll start a separate thread regarding Content Hub as well. Surely that should work without Qt/QML????

      Best wishes, Max

      1 Reply Last reply Reply Quote 0
      • P PerlMax referenced this topic
      • P Offline
        PerlMax
        last edited by PerlMax

        The state of Content-Hub is strange. When I open the app and then send myself files via the File Manager, for example, it seems to work. However, if the app isn't already open the first time and is essentially opened through the Content Hub, it only works once 😞

        1 Reply Last reply Reply Quote 0
        • P Offline
          PerlMax
          last edited by PerlMax

          There is also a visual issue that two windows are now opening: one titled "pefl" (the actual app) and one titled "X11 Support." This problem also occurs in uWolf by @chromiumos-guy , for example. However, it has somehow been resolved in Min Browsers and @pparent apps (which also run on Xwayland). I'd appreciate any advice...

          Here a screenshot

          (screenshot20260609_124509719.png

          pparentP 1 Reply Last reply Reply Quote 0
          • pparentP Online
            pparent @PerlMax
            last edited by

            @PerlMax

            I can't see the screenshot! 😉

            What version of UT are you running?

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              PerlMax @pparent
              last edited by

              @pparent 24.04-1 I think (the stable branch)

              pparentP 1 Reply Last reply Reply Quote 0
              • pparentP Online
                pparent @PerlMax
                last edited by

                @PerlMax

                Yes but what version precisely? Because there was an important change about that between 24.04-1.2 and 24.04-1.3 .

                Can you re-upload the screenshot we cannot see it!

                1 Reply Last reply Reply Quote 0
                • P Offline
                  PerlMax
                  last edited by

                  my UT version is 24.04-1.3

                  here again the screenshot:

                  screenshot20260609_124509719.png

                  Can you see it now?

                  pparentP 1 Reply Last reply Reply Quote 0
                  • pparentP Online
                    pparent @PerlMax
                    last edited by

                    @PerlMax

                    Yes, Well I guess your application is firing 2 windows, no?

                    You can install xdotool to list the existing xWayland windows.

                    My guess is, that this bug is not related to UT, but that your application is starting 2 windows.

                    P 1 Reply Last reply Reply Quote 0
                    • P Offline
                      PerlMax @pparent
                      last edited by

                      @pparent mmh, I don't think so (because on my desktop there is only one window and the problem is with uWolf the same). I really do only some standard code with efl 😞 But I will do further diagnostics with xdotool..

                      pparentP 1 Reply Last reply Reply Quote 0
                      • pparentP Online
                        pparent @PerlMax
                        last edited by

                        @PerlMax

                        Well I don't know, I've not done anything in particular, with 24.04-1.3 there should be only one window by default for a Xwayland program.

                        Make sure to do

                        export GDK_BACKEND=x11
                        export DISABLE_WAYLAND=1 
                        

                        before you start your app

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

                          Also maybe make sure your window title and name are similar or equal to your application name, as Lomiri does a fuzzy compare to detect the application corresponding to a window.

                          1 Reply Last reply Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • First post
                            Last post