<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 7, 2016 at 10:31 PM, Mark Shuttleworth <span dir="ltr"><<a href="mailto:mark@ubuntu.com" target="_blank">mark@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span>On 07/09/16 12:32, Matthew Williams wrote:<br>
> I have a few applications I'm looking to snap, but quite a lot of them<br>
> shell out to other commands at some point and it's not always<br>
> practical to include these with my snap, one concrete example is<br>
> shelling out to /usr/bin/sensible-browser.<br></span></blockquote><div><br></div><div>We have something slightly better than this. Any snap can call xdg-open $url and have that URL being sent to a safe launcher over dbus.</div><div><br></div><div>This is the exact line:</div><div><br></div><div> bus-send --print-reply --session --dest=com.canonical.<wbr>SafeLauncher / com.canonical.SafeLauncher.<wbr>OpenURL string:"$1"<br></div><div><br></div><div>Because this is always safe to do and offered over a common mechanism, we don't need an interface to mediate it. If something is listening, a browser is fired.</div><div><br></div><div>We need to make sensible-browser call the same so applications just work.</div><div><br></div><div><br></div></div><div>gustavo @ <a href="http://niemeyer.net" target="_blank">http://niemeyer.net</a></div>
</div></div>