<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>