<div dir="ltr"><div><div><div>Thanks for the explanation Didier. :)<br><br></div>I'll try to install that package and check if it works. However, I guess this package is only available for Ubuntu users right? Does anybody know if it will be available on other distributions? It makes sense to me that if snapd is a cross-distribution package, snapd-xdg-open should be available too.<br><br></div>Best,<br><br></div>Eloy<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-21 10:22 GMT+01:00 Didier Roche <span dir="ltr"><<a href="mailto:didrocks@ubuntu.com" target="_blank">didrocks@ubuntu.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <div class="m_2325038316178173290moz-cite-prefix">Le 21/11/2016 à 09:30, Eloy García (PC
      Actual) a écrit :<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hi Didier.<br>
                <br>
              </div>
              My snap package (wallpaperdownloader) invokes xdg-open
              internally but it isn't working yet. Should I use a
              specific interface to accomplish that? This is the
              snapcraft.yml<br>
              <br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br></span>
    Hey Eloy,<br>
    <br>
    You need to have snapd-xdg-open package installed on the desktop.
    IIRC, the goal was to seed it by default or have snapd recommending
    it. CCing mvo on that who also responsible for the package on ubuntu
    if there is any reason this isn't the case yet.<br>
    <br>
    Ensure you are then using xdg-open from /usr/local/bin/.<br>
    <br>
    I konw this is working with the unity7 interface (I don't remember
    if the x11 one is succifient, but it should, if not, it's a bug).<br>
    Cheers<span class="HOEnZb"><font color="#888888"><br>
    Didier</font></span><div><div class="h5"><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <pre>name: wallpaperdownloader
version: "2.3"
summary: Download, manage and change your favorite wallpapers from the Internet
description: WallpaperDownloader is a simple GUI Java based application for downloading, managing and changing wallpapers from the Internet
grade: stable
confinement: strict

apps:
  wallpaperdownloader:
    command: wallpaperdownloader.sh
    plugs: [x11, network-bind, home, gsettings]

parts:
  # Pulls the code from the original source (master branch)
  # desktop/gtk3 is a snapcraft part (snapcraft-desktop-helpers) from the Wiki: <a href="https://wiki.ubuntu.com/snapcraft/parts" target="_blank">https://wiki.ubuntu.com/<wbr>snapcraft/parts</a>
  # It enables desktop integration and gsettings manipulation from the confined application
  # It is necessary to use gsettings interface (see above) in order to have a fully functional
  # desktop/gtk3 part
  # Github repository for snapcraft-desktop-helpers: <a href="https://github.com/ubuntu/snapcraft-desktop-helpers" target="_blank">https://github.com/ubuntu/<wbr>snapcraft-desktop-helpers</a>
  wallpaperdownloader:
    source: <a href="https://bitbucket.org/eloy_garcia_pca/wallpaperdownloader.git" target="_blank">https://bitbucket.org/eloy_<wbr>garcia_pca/<wbr>wallpaperdownloader.git</a>
    plugin: maven
    stage-packages:
      # mate-desktop-common is necessary to have MATE gsettings schemas available for the application
      - mate-desktop-common
    after: [desktop-gtk3]

  # It will copy wallpaperdownloader script into /bin/
  # This script contains all the commands needed (sets env variables, launches the jar file...) to
  # execute the application
  exec:
    plugin: dump
    source: scripts
</pre>
              <br>
            </div>
            Thanks!!!<br>
            <br>
          </div>
          Best,<br>
          <br>
        </div>
        Eloy<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-11-21 8:08 GMT+01:00 Didier Roche
          <span dir="ltr"><<a href="mailto:didrocks@ubuntu.com" target="_blank">didrocks@ubuntu.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Le 21/11/2016 à 04:26, Spencer a écrit :<br>
              > It's been a few weeks now, but last I heard, the
              snapcraft team was or did a sprint to address current
              limitations snaps have regarding the invocation of
              external processes.  Specifically, it would be nice to
              launch the user's default browser with a URL, or let a
              snap invoke another instance of itself.  What's the status
              on this?<br>
              ><br>
            </span>Hey Spencer,<br>
            <br>
            Default browser should works for some months already if your
            application<br>
            (or toolkit, like Qt does) invoke the xdg-open to open the
            url. This is<br>
            then transmitted via dbus to an external process on your
            classic system<br>
            which then issues the real xdg-open command.<br>
            For the others, there are been indeed multiple discussions
            on this at<br>
            multiple places (here, on the bug report…), but no action or
            firm<br>
            decision. I'm CCing Gustavo as he was the one against a more
            generic<br>
            intermediate solutions.<br>
            <br>
            Cheers,<br>
            Didier<br>
            <div class="m_2325038316178173290HOEnZb">
              <div class="m_2325038316178173290h5"><br>
                <br>
                --<br>
                Snapcraft mailing list<br>
                <a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a><br>
                Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div class="m_2325038316178173290gmail_signature" data-smartmail="gmail_signature">
          <div dir="ltr">Eloy García Almadén<br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="m_2325038316178173290mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <p><br>
    </p>
  </div></div></div>

<br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Eloy García Almadén<br></div></div>
</div>