On Wed, Sep 7, 2016 at 10:31 PM, Mark Shuttleworth <[email protected]> wrote:

> On 07/09/16 12:32, Matthew Williams wrote:
> > I have a few applications I'm looking to snap, but quite a lot of them
> > shell out to other commands at some point and it's not always
> > practical to include these with my snap, one concrete example is
> > shelling out to /usr/bin/sensible-browser.
>

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.

This is the exact line:

    bus-send --print-reply --session --dest=com.canonical.SafeLauncher /
com.canonical.SafeLauncher.OpenURL string:"$1"

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.

We need to make sensible-browser call the same so applications just work.


gustavo @ http://niemeyer.net
-- 
Snapcraft mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft

Reply via email to