<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I would like to add geo: handling into Pure Maps. While command line arguments can be used through Qt.application.arguments in QML, its not very clear how to take into account already running instance. Namely, we are expected to have only one instance of application running and as a result, if some other application calls geo: handler, it is expected that the map application will become active and show corresponding location.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If I would have full control over application start, as in C++ applications, I would probably made:</div><div class="gmail_default" style="font-size:small">* DBus interface</div><div class="gmail_default" style="font-size:small">* on start checked whether such interface is active/available. </div><div class="gmail_default" style="font-size:small">* If active DBus interface is there, would have called corresponding DBus method and exited</div><div class="gmail_default" style="font-size:small">* If not, started full application</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">QML/Python apps, such as Pure Maps, are started using sailfish-qml. This arrangement, as far as I can see, prevents such handling. It looks to me that I should write some kind of launcher (Python probably) that could be used to either communicate with the main application via DBus or start the full application. Or am I wrong? Maybe there is some better idea for implementation of such functionality?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Cheers,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Rinigus</div><div class="gmail_default" style="font-size:small"><br></div></div>