Access to other commands

Gustavo Niemeyer gustavo.niemeyer at canonical.com
Thu Sep 8 02:11:15 UTC 2016


On Wed, Sep 7, 2016 at 10:31 PM, Mark Shuttleworth <mark at ubuntu.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20160907/f3fc56a5/attachment.html>


More information about the Snapcraft mailing list