[SailfishDevel] Lipstick and xdg-open

Andrey Kozhevnikov coderusinbox at gmail.com
Thu Oct 22 21:11:17 UTC 2015


lipstick itself doesnt handle xdg, because it's a different things. to 
make it works like clicking in application grid you should use 
libcontentaction instead.

------ Исходное сообщение ------
От: "r0kk3rz" <r0kk3rz at gmail.com>
Кому: "Sailfish OS Developers" <devel at lists.sailfishos.org>
Отправлено: 23.10.2015 2:09:41
Тема: [SailfishDevel] Lipstick and xdg-open

>Hi Developers,
>
>How does Lipstick handle xdg-open in cases when the app is already 
>running?
>
>When the app isn't running, I can currently open a file through 
>xdg-open, which opens the app and passes in the file url as a command 
>line parameter.
>
>I expected that upon subsequent xdg-open calls, it would also call the 
>program with command line parameter, which I could use to check for an 
>open instance on dbus, fire off a method call, and close again. Sounds 
>easy, but this doesn't seem to be the case.
>
>If the app is already open, it comes into focus, and presumably needs 
>some kind of an interface to get the open args?
>
>
>Watching dbus-monitor, i can see the following happen as i am trying to 
>open a file
>
>method call sender=:1.394 -> dest=org.freedesktop.DBus serial=1 
>path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; 
>member=Hello
>signal sender=:1.394 -> dest=(null destination) serial=2 
>path=/org/gtk/gio/DesktopAppInfo; interface=org.gtk.gio.DesktopAppInfo; 
>member=Launched
>
>which has a parameter with my file url that i'm trying to open. And 
>then lipstick brings my app into focus with this straight after
>
>method call sender=:1.390 -> dest=org.nemomobile.lipstick serial=3 
>path=/WindowModel; interface=local.Lipstick.WindowModel; 
>member=launchProcess
>    string "/usr/bin/harbour-sirensong"
>
>Any information about how this is supposed to work?
>
>Regards,
>
>Lewis Rockliffe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20151022/624f88c7/attachment.html>


More information about the Devel mailing list