[SailfishDevel] Command line arguments and DBus integration for QML/Python apps
rinigus
rinigus.git at gmail.com
Sun Dec 9 12:40:30 UTC 2018
Hi,
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.
If I would have full control over application start, as in C++
applications, I would probably made:
* DBus interface
* on start checked whether such interface is active/available.
* If active DBus interface is there, would have called corresponding DBus
method and exited
* If not, started full application
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?
Cheers,
Rinigus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20181209/711b23ae/attachment.html>
More information about the Devel
mailing list