Navigation

    UBports Robot Logo

    UBports Forum

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

    UNSOLVED start of uNav through a shell script stopped working

    Support
    3
    5
    235
    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
      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

      AppLee arubislander 2 Replies Last reply Reply Quote 0
      • AppLee
        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
        • arubislander
          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
          BQ Aquaris M10 FHD (16.04 RC)
          Google Pixel 3a (20.04 DEV)
          JingPad (16.04 DEV)
          Meizu Pro 5 (16.04 DEV)
          PinePhone / PineTab UT CE (16.04 DEV)

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

            @arubislander Oh right, didn't pay much attention to the release version. πŸ‘

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

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

              πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
              Happily running Ubuntu Touch
              BQ Aquaris M10 FHD (16.04 RC)
              Google Pixel 3a (20.04 DEV)
              JingPad (16.04 DEV)
              Meizu Pro 5 (16.04 DEV)
              PinePhone / PineTab UT CE (16.04 DEV)

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