ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #19513
Re: starting a background proc from a desktop icon
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, ✉ guru@xxxxxxxxxxx, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045
References