• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 435 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 11 Jul 2021, 08:41

      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

      A A 2 Replies Last reply 11 Jul 2021, 09:40 Reply Quote 0
      • A Offline
        AppLee @guru
        last edited by 11 Jul 2021, 09:40

        @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
        • A Offline
          arubislander @guru
          last edited by 11 Jul 2021, 09:42

          @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
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

          A 1 Reply Last reply 11 Jul 2021, 09:42 Reply Quote 0
          • A Offline
            AppLee @arubislander
            last edited by 11 Jul 2021, 09:42

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

            A 1 Reply Last reply 11 Jul 2021, 09:43 Reply Quote 0
            • A Offline
              arubislander @AppLee
              last edited by arubislander 7 Nov 2021, 09:44 11 Jul 2021, 09:43

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

              πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
              Happily running Ubuntu Touch
              Google Pixel 3a (20.04 DEV)
              JingPad (24.04 preview)
              Meizu Pro 5 (16.04 DEV)

              1 Reply Last reply Reply Quote 0
              2 out of 5
              • First post
                2/5
                Last post