I have found a trivial, combined solution: the *.desktop file is:

[Desktop Entry]
Name=unav-osm
Type=Application
Exec=/usr/bin/nohup /home/phablet/unav.sh
Icon=/userdata/system-data/opt/click.ubuntu.com/navigator.costales/0.57/icon.png
Terminal=false
X-Ubuntu-Touch=true

and the shell script launches both, first the HTTP server, and after
this the uNav app:

#!/bin/sh 

# 1st start the local HTTP server:
cd /media/phablet/*/Maps
python3 -m http.server 8888 &

# now start uNav
cd /userdata/system-data/opt/click.ubuntu.com/navigator.costales/0.57/
qmlscene %u qml/Main.qml

works fine;

        matthias
-- 
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  ☎ 
+49-176-38902045

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp

Reply via email to