Closed jonnius closed 7 months ago
I don't get it - why is QCoreApplication::applicationFilePath
not the same path in UT? What is it then? Maybe we should fix that...
It returns the correct path (/opt/click.ubuntu.com/osmscout-server.jonnius/<version>/usr/bin/osmscout-server
). The problem is that this path changes with each update. So we are storing a rather volatile path into the persistent systemd service file.
There is a symlink current
always pointing to the current version. That is what I am using in this workaround, providing a stable path over versions.
Without this workaround I see two alternatives:
I see. No, we can surely add this workaround. Merging.
Currently, the
ExecStart
field in the service file on Ubuntu Touch / Lomiri contains the app version. This breaks the service on each update. This PR changes the path to a hard-coded and stable one.