How to force a link to open with a selected app?
-
The issue:
- I've set up some links to open by App1
- Inside App1, I show a link
- This link, when tapped, is opened by App1
How do I force the link to be opened with Morph?
I've seen this, but I couldn't make it work as
Qt.openUrlExternally("appid://morph-broswer.ubports/morph-broswer/current-user-version" link)Is the ContentHub required?
-
I actually didn't know about this, interesting.
I triee a bit and had success it some apps like the clock app.
I also tried with Morph Qt6 and it worked. This is what I usedappid://morph-browser-qt6.ubports/morph-browser/current-user-version
I'm still unsure what's the format for the second section so maybe that's the key?
Also, maybe it only works with click apps and not deb ones? I also can't make it to work on apps like messaging app. -
@kugiigi this might work to force webapps to use the newer browser right?
-
@nbdynl Not really. This is only for opening an app and not opening a URL.
-
@kugiigi I'm pretty sure it only works for clicks as it takes appID
For the messaging app... I think you can use 'message://'

You can see the hooks for the url-dispatcher in the system.$ lomiri-url-dispatcher-dump video,"",/usr/share/lomiri-url-dispatcher/urls/mediaplayer-app.url-dispatcher audio,"",/usr/share/lomiri-url-dispatcher/urls/mediaplayer-app.url-dispatcher syncmonitorhelper,"",/usr/share/lomiri-url-dispatcher/urls/syncmonitorhelper.url-dispatcher evernote,"",/home/phablet/.cache/lomiri-url-dispatcher/urls/notes.ubports_reminders_1.0.1.url-dispatcher tel,"",/usr/share/lomiri-url-dispatcher/urls/dialer-app.url-dispatcher dialer,"",/usr/share/lomiri-url-dispatcher/urls/dialer-app.url-dispatcher addressbook,"",/usr/share/lomiri-url-dispatcher/urls/address-book-app.url-dispatcher message,"",/usr/share/lomiri-url-dispatcher/urls/messaging-app.url-dispatcher sms,"",/usr/share/lomiri-url-dispatcher/urls/messaging-app.url-dispatcher http,"",/usr/share/lomiri-url-dispatcher/urls/morph-browser.url-dispatcher https,"",/usr/share/lomiri-url-dispatcher/urls/morph-browser.url-dispatcher ...I think the apps should receive an url if it's indicated in the desktop file:
Exec=morph-browser %u
%u should be 1 link, %U a list of them -
Oh!
Might be this?application:///morph-browser.desktop -
To investigate:
https://gitlab.com/ubports/development/core/lomiri-url-dispatcher/-/blob/main/tests/dispatcher-test.cc^__^
-
Ah, no. I don't think it's possible to pass an url + the appid link. The idea is to open the app...
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