The application works with .zip and .csv files, and in order to open them, I need to first launch the application, open a file dialog and find the file I need. I would like to transfer them directly from mail client or file browser or messenger etc. How can this be done? It smells like Share API) But there is not enough information.
Hi. It is relatively easy. But not such easy as on standard Linux, when you can add just one line to desktop file. Because Sailfish executes application in single instance, you have to register D-Bus service to listen for “open” actions when your application is running already. You can get inspiration in Jolla’s Mediaplayer app, that is registered for opening audio files.
In /usr/share/applications/jolla-mediaplayer.desktop file are important these lines: