With a little bit reverse engineering I found a way how to add more applications on the uHome desktop:
Note: The preinstalled applications are stored in /usr/share/click/preinstalled
and "after" installed applications are in /opt/click.ubuntu.com
As someone mentioned here, using a command lomiri-url-dispatcher-dump
you can check applications with existing links.
You need to choose one of those applications (e.g. Weather) and go to its installations directory (/usr/share/click/preinstalled/weather.ubports/6.0.2
). Now find the file named lomiri-weather-app.url-dispatcher
So in other words the goal is to find some existing *.url-dispatcher file as an example. I found a second option used by uHome application itself and that is a json file instead.
Now do a copy of this file into your home directory. Rename according your new application, (e.g. level.luksus42.url-dispatcher). Edit this file and rewrite the url to desired word. For example rename "weather" to "level".
After this you need to make the root filesystem writable (sudo mount -o remount,rw /
and copy the file to corresponding directory for the new application (e.g. /opt/click.ubuntu.com/level.luksus42/0.5/level.luksus42.url-dispatcher
Next step is to edit the manifest file of the new application (e.g. /opt/click.ubuntu.com/level.luksus42/0.5/.click/info/level.luksus42.manifest
). Find the section "Hooks" and add a line refering to your "url-dispatcher" file.
Example:
"hooks": {
"level.luksus42": {
"apparmor": "level.luksus42.apparmor",
"desktop": "level.luksus42.desktop",
"urls": "level.luksus42.url-dispatcher"
}
},
Be carefull about the commas at the end of lines. Note, that each line has comma at the end but the last line doesn't.
Now reboot your device and check if the new link was added lomiri-url-dispatcher-dump
. If you see it there you almost won. Now you need just to add a link onto uHome desktop, use the chosen url and search the app directory for corresponding icon.
I will be happy if this guide helps someone except me. And I wish, that the uHome app will be migrated to the current and future systems. I also would appreciate if you add an option to group Links in folders like it is in android/iOs systems.
Thank you @pavelprosto for this app.