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

    start of uNav through a shell script stopped working

    Scheduled Pinned Locked Moved Unsolved Support
    5 Posts 3 Posters 840 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.
    • G Offline
      guru
      last edited by

      I'm used to start uNav from a modified desktop entry and at the end through some small shell script (to connect the modified app to a local running HTTP server). The desktop entry is:

          [Desktop Entry]
          Name=unav-osm
          Type=Application
          Exec=/usr/bin/nohup /home/phablet/unav.sh
          Icon=/userdata/system-data/opt/click.ubuntu.com/navigator.costales/current/icon.png
          Terminal=false
          X-Ubuntu-Touch=true
      

      and the shell script is at the end to launch uNav:

      # 2.3
      cd /opt/click.ubuntu.com/navigator.costales/2.3
      aa-exec-click -p navigator.costales_navigator_2.3 -- qmlscene %u qml/Main.qml > /tmp/unav.err 2> /tmp/unav.err
      

      This gives in the file /tmp/unav.err the following messages:

      # cat /tmp/unav.err 
      Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
      Creating a QMirClientScreen now
      "/opt/click.ubuntu.com/navigator.costales/2.3/%u" does not exist.
      <Unknown File>: WARNING: the use of the Ubuntu.Components.Extras.Browser and Ubuntu.Web  namespace is deprecated, please consider updating your applications to import Morph.Web instead.
      file:///opt/click.ubuntu.com/navigator.costales/2.3/qml/Main.qml:24 module "com.canonical.Oxide" is not installed
      

      Any idea what might be missing now or is wrong. It still worked in summer 2020 and I think that the problem is caused by installing one of the last OTA.

      Thanks
      Matthias

      AppLeeA arubislanderA 2 Replies Last reply Reply Quote 0
      • AppLeeA Offline
        AppLee @guru
        last edited by

        @guru
        Just by reading the log, I'd say %u is not used anymore or something like that.
        Or maybe this argument should be set after the filename...

        First I would try to remove this %u and see how it works.
        I don't know its purpose but I think it won't work.

        And more importantly, Oxide support has been removed from Ubuntu Touch. There were many warnings before doing it. I think uNav has been updated but if you still use an old qml file it might need an update...

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

          @guru Your script targets an old version of uNav (2.3) which uses the old Oxide web library that has been removed in one of the latest OTA's after having been deprecated for a few previous OTA's.

          The latest version of uNav is 3.13.

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          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)

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

            @arubislander Oh right, didn't pay much attention to the release version. :thumbs_up:

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

              @applee: you beat me to the right answer, though ... :beaming_face_with_smiling_eyes:

              πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
              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)

              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