rinigus / pure-maps

Maps and navigation
https://rinigus.github.io/pure-maps/
GNU General Public License v3.0
260 stars 43 forks source link

dbus api is not exposed on ubuntu touch #685

Open jmlich opened 1 day ago

jmlich commented 1 day ago

It seems apparmor prevents creating dbus service on ubuntu touch.

Steps to reproduce

$ busctl --user get-property io.github.rinigus.PureMaps /io/github/rinigus/PureMaps/navigator io.github.rinigus.PureMaps.navigator manDist

Expected result:

s "-"

Current result:

Failed to get property manDist on interface io.github.rinigus.PureMaps.navigator: The name io.github.rinigus.PureMaps was not provided by any .service files

It seems there isn't any suitable apparmor group at https://gitlab.com/ubports/development/core/apparmor-easyprof-ubuntu/-/tree/main/data/policygroups/ubuntu/20.04

It worked when I replaced click/pure-maps.apparmor with

{
    "policy_groups": [
    ],
    "policy_version": 20.04,
    "template": "unconfined"
}

and recompiled with skip-review flag like this clickable build --arch arm64 --app --skip-review.

My use case is passing navigation instructions to PineTime and I am trying to figure out why it doesn't work. See https://github.com/piggz/harbour-amazfish/blob/dbd7a48151712cdce9898f542998ec425b967c01/daemon/src/navigationinterface.cpp#L88C38-L88C45

rinigus commented 23 hours ago

I remember hearing about dbus limitations on UT. Not much I can do about it on Pure Maps side. Please file it on UT bug reports (assuming that there is somewhere to report it)

jmlich commented 22 hours ago

I have created an issue at https://gitlab.com/ubports/development/core/apparmor-easyprof-ubuntu/-/issues/20

The app can be compiled and published in app store with unconfined template. To publish such app you have to ask @bhdouglass at telegram group https://open-store.io/telegram