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

    standard browser

    Scheduled Pinned Locked Moved Fairphone 4
    8 Posts 4 Posters 210 Views 2 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.
      • E Offline
        Ernst-Jan15
        last edited by

        Hello all,

        Is there a way to uninstall the morph browser or to make an other, ie UWolf, the standard browser?

        EJ

        Ernst

        K 1 Reply Last reply Reply Quote 0
        • K Online
          kugiigi @Ernst-Jan15
          last edited by

          @Ernst-Jan15 If you mean, opening links to other browsers then sadly no. At the moment, it's a bit random which browser will open in every boot of the device. The browser also need to provide a configuration to tell the system it can handle web links. I don't think browsers like uWolf has that.

          You also can't uninstall Morph. You can delete (or rename) Morph's configuration to allow other browsers to handle web links.

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            gpatel-fr @kugiigi
            last edited by

            @kugiigi said in standard browser:

            At the moment, it's a bit random which browser will open in every boot of the device

            Is not it ruled by the order of rows in the configfiles table of urls-1.db ? It's not changing by itself.

            For fun, I tried to hack the urls table with instruction like:

             update urls set domainsuffix='nothing.org' where sourcefile != 27 and protocol='https' and length(domainsuffix)==0;
            

            where 27 is the rowid of the morph browser qt6 for my phone. It worked, I could start the new fangled browser from a link. Restarting the phone did not revert to standard Morph for links. At the moment I don't know if it has bad consequences but I'd say that extending UT to allow for a browser choice can't be impossible.

            Sadly you are right for browsers not prepared for that, Min did not start when I used its rowid instead of the Morph Qt6 one. Firefox and Chromium do not even expose http and https handlers. Maybe it could be hacked around but given that Min does not even start I could not be bothered to try.

            P 1 Reply Last reply Reply Quote 1
            • P Offline
              projectmoon @gpatel-fr
              last edited by projectmoon

              @gpatel-fr said in standard browser:

              @kugiigi said in standard browser:

              At the moment, it's a bit random which browser will open in every boot of the device

              Is not it ruled by the order of rows in the configfiles table of urls-1.db ? It's not changing by itself.

              For fun, I tried to hack the urls table with instruction like:

               update urls set domainsuffix='nothing.org' where sourcefile != 27 and protocol='https' and length(domainsuffix)==0;
              

              where 27 is the rowid of the morph browser qt6 for my phone. It worked, I could start the new fangled browser from a link. Restarting the phone did not revert to standard Morph for links. At the moment I don't know if it has bad consequences but I'd say that extending UT to allow for a browser choice can't be impossible.

              Sadly you are right for browsers not prepared for that, Min did not start when I used its rowid instead of the Morph Qt6 one. Firefox and Chromium do not even expose http and https handlers. Maybe it could be hacked around but given that Min does not even start I could not be bothered to try.

              How did you determine that the row id is 27 for Morph QT6? I want to do this so I can actually open links in the modernized browser.

              Edit: is it the row in the configfiles table?

              Edit 2: Yep. Got it!

              Maybe this should be turned into an app.

              G 1 Reply Last reply Reply Quote 0
              • G Offline
                gpatel-fr @projectmoon
                last edited by gpatel-fr

                @projectmoon said in standard browser:

                Maybe this should be turned into an app.

                if the alternatives browsers (such as Min, uWolf, ChromiumUT) were ready to be used like this, a script using this trick could be used to disable preferred browsers in a more user friendly way. Until then, it's not really so useful.

                P 1 Reply Last reply Reply Quote 0
                • P Offline
                  projectmoon @gpatel-fr
                  last edited by

                  @gpatel-fr Another question would be: is there a way to do it without hacking the database table? Like, is there something in the DB that allows it to select a browser without excluding apps from the list by doing a fake domain?

                  K G 2 Replies Last reply Reply Quote 0
                  • K Online
                    kugiigi @projectmoon
                    last edited by

                    @projectmoon You can also delete or temporarily move the entry of preinstalled Morph or any other browsers you dodon't want in /usr/share/lomiri-url-dispatcher and ~/.cache/lomiri-url-dispatcher

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      gpatel-fr @projectmoon
                      last edited by

                      @projectmoon said in standard browser:

                      is there something in the DB that allows it to select a browser without excluding apps from the list by doing a fake domain?

                      no, that's why I did this ugly hack (that will most probably not survive an update btw).
                      Adding a column named for example pref_order to the urls table and sorting by it instead of the row_id (that can't be changed since it's an implicit column) could allow to change dynamically the browser. It would be nice to have if alternative browsers could be used. I don't know if the packagers for alternative browsers would be motivated enough to search what is missing for that.

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