<HTML><HEAD>
<STYLE id=eMClientCss>blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
.plain pre, .plain tt { font-family: monospace; font-size: 100%; font-weight: normal; font-style: normal; white-space: pre-wrap; }
a img { border: 0px; }body {font-family: Tahoma;font-size: 12pt;}
.plain pre, .plain tt {font-family: Tahoma;font-size: 12pt;}
</STYLE>
<STYLE></STYLE>
</HEAD>
<BODY scroll=auto class>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>------ Исходное сообщение ------</DIV>
<DIV>От: "r0kk3rz" <<A href="mailto:r0kk3rz@gmail.com">r0kk3rz@gmail.com</A>></DIV>
<DIV>Кому: "Sailfish OS Developers" <<A href="mailto:devel@lists.sailfishos.org">devel@lists.sailfishos.org</A>></DIV>
<DIV>Отправлено: 23.10.2015 2:09:41</DIV>
<DIV>Тема: [SailfishDevel] Lipstick and xdg-open</DIV>
<DIV> </DIV>
<DIV id=x95abd0b34fe64a3ab2c6d6a294842bed>
<BLOCKQUOTE class=cite2 cite=CAMx7nHuML3dTjNPWnrs-Z8ZbCBd2z45bVhwh+CQU4nbN4bxr6w@mail.gmail.com type="cite">
<DIV dir=ltr>
<DIV>
<DIV>
<DIV>
<DIV>
<DIV>
<DIV>
<DIV>
<DIV>Hi Developers,<BR><BR></DIV>How does Lipstick handle xdg-open in cases when the app is already running?<BR><BR></DIV>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.<BR><BR></DIV>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.<BR><BR></DIV>
<DIV>If the app is already open, it comes into focus, and presumably needs some kind of an interface to get the open args?<BR></DIV>
<DIV><BR><BR></DIV>Watching dbus-monitor, i can see the following happen as i am trying to open a file<BR><BR>method call sender=:1.394 -> dest=org.freedesktop.DBus serial=1 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello<BR>signal sender=:1.394 -> dest=(null destination) serial=2 path=/org/gtk/gio/DesktopAppInfo; interface=org.gtk.gio.DesktopAppInfo; member=Launched<BR><BR></DIV>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<BR><BR>method call sender=:1.390 -> dest=org.nemomobile.lipstick serial=3 path=/WindowModel; interface=local.Lipstick.WindowModel; member=launchProcess<BR> string "/usr/bin/harbour-sirensong"<BR><BR></DIV>Any information about how this is supposed to work?<BR><BR></DIV>Regards,<BR><BR></DIV>Lewis Rockliffe<BR></DIV></BLOCKQUOTE></DIV></BODY></HTML>