<div dir="ltr">Hi Olivier,<div><br></div><div>Based on the snapcraft release 2.25, I have made an example at:</div><div><br></div><div><a href="https://github.com/liu-xiao-guo/helloworld-desktop">https://github.com/liu-xiao-guo/helloworld-desktop</a><br></div><div><br></div><div>So, far, I do not have any problems with it. Is there anything I am doing wrongly? I can see the launchers in the Ubuntu dash without any problems and the apps are launched well.</div><div><br></div><div>By the way, I have created a blog for it at <a href="http://blog.csdn.net/ubuntutouch/article/details/54691673">http://blog.csdn.net/ubuntutouch/article/details/54691673</a>. It has the captured pictures.</div><div><br></div><div>Thanks & best regards,</div><div>XiaoGuo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 21, 2017 at 12:09 AM, Olivier Tilloy <span dir="ltr"><<a href="mailto:olivier.tilloy@canonical.com" target="_blank">olivier.tilloy@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Jan 19, 2017 at 3:47 AM, Sergio Schvezov <<a href="mailto:sergiusens@gmail.com">sergiusens@gmail.com</a>> wrote:<br>
> Hello snapcrafters!<br>
><br>
> We are pleased to announce the release of version `2.25` of snapcraft has been released:<br>
> <a href="https://launchpad.net/snapcraft/+milestone/2.25" rel="noreferrer" target="_blank">https://launchpad.net/<wbr>snapcraft/+milestone/2.25</a><br>
><br>
> This release is now available on xenial-updates, yakkety-updates and zesty.<br>
> What follows are the full release notes (the prettier version can be read at <a href="https://github.com/snapcore/snapcraft/releases/tag/2.25" rel="noreferrer" target="_blank">https://github.com/snapcore/<wbr>snapcraft/releases/tag/2.25</a>)<br>
><br>
> # New in this release<br>
><br>
> ## Support for hooks<br>
> Hooks support has arrived. There are currently two ways to use them, either with a by-convention path or by using a `part` and installing into an expected path in the part's install directory.<br>
><br>
> Find out more about this feature at <a href="https://github.com/snapcore/snapcraft/blob/master/docs/hooks.md" rel="noreferrer" target="_blank">https://github.com/snapcore/<wbr>snapcraft/blob/master/docs/<wbr>hooks.md</a><br>
><br>
> ## Desktop file support<br>
> Aside from the by-convention functionality already in place, you can now declare a desktop file from your app within an `apps` entry using a path relative to the `prime` directory pointing to a desktop file, snapcraft will take care of the rest.<br>
<br>
</span>I would not recommend starting to use that new feature because of<br>
<a href="https://launchpad.net/bugs/1658123" rel="noreferrer" target="_blank">https://launchpad.net/bugs/<wbr>1658123</a>. This will hopefully be usable in<br>
time for 2.26.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
> So if your project already has a desktop file, say in `./prime/usr/share/<wbr>applications/my-app.desktop` all you need to do is something like this:<br>
><br>
> ```yaml<br>
> apps:<br>
>     my-app:<br>
>         command: my-app<br>
>         desktop: usr/share/applications/my-app.<wbr>desktop<br>
> ```<br>
><br>
> That said, it is worth mentioning that the by-convention mechanism is still supported.<br>
><br>
> ## rust plugin<br>
> The `rust` plugin has seen an improvement and a couple of bug fixes.<br>
><br>
> The added feature allow for one to set `rust-features` which is a list of strings used to build optional dependencies (run `snapcraft help rust` for a bit more details).<br>
><br>
> The bug fixes relate to:<br>
><br>
> - Allowing to build with `Cargo.toml` not in the base source directory.<br>
> - Repecting the other `rust` plugin properties: `rust-channel` and `rust-revision`.<br>
><br>
> ## nodejs plugin<br>
> The plugin now correctly downloads dependencies in `package.json` to the correct location.<br>
><br>
> ## godeps plugin<br>
> This plugin is now no longer affected by `GOBIN` being set in the environment.<br>
><br>
> ## deb sources<br>
> `deb` sources are now being handled with `python-debian` which does incorrecly handle symlinks.<br>
><br>
> ## More modes for daemon's in apps<br>
> You can now set the `daemon` property in an `apps` entry to `notify` (and it will follow systemd's expected behavior for this service type).<br>
><br>
> ## Deprecations<br>
> Some new deprecations have been introduced, for `parts` the `prime` keyword is now favored over the `snap` one. When using the `snap` keyword a link to <a href="http://snapcraft.io/docs/deprecation-notices/dn1" rel="noreferrer" target="_blank">http://snapcraft.io/docs/<wbr>deprecation-notices/dn1</a> will be presented with more information and the migration path.<br>
><br>
> Plugins that are part of snapcraft that were displaying `DEPRECATED` notices have all been updated to use the newer plugin API.<br>
><br>
> ## Classic confinement<br>
> Some improvements were made to classic confinement with a more comprehensive error when the prerequisites to build a classic confined snap are not met.<br>
><br>
> ## parts<br>
> Improvements were made to the core parts management of snapcraft:<br>
><br>
> - `stage` entries now don't need to be replicated in `prime`.<br>
> - cleaning all parts works correctly even if `snapcraft.yaml` is broken.<br>
><br>
> ## Others<br>
> For the full list of things available on 2.25 feel free to check <a href="https://launchpad.net/snapcraft/+milestone/2.25" rel="noreferrer" target="_blank">https://launchpad.net/<wbr>snapcraft/+milestone/2.25</a><br>
><br>
> # Contributions<br>
> This release has seen some contributions from outside of the snapcraft core team, so we want to give a shout out to these folks, here's a team thank you for:<br>
><br>
> - Chris Holcombe<br>
> - Jonathon Love<br>
> - Kit Randel<br>
> - Marco Trevisan<br>
> - Matthew Aguirre<br>
> - Olivier Tilloy<br>
><br>
> # Final Notes<br>
> To get the source for this release check it out at<br>
> <a href="https://github.com/snapcore/snapcraft/releases/tag/2.25" rel="noreferrer" target="_blank">https://github.com/snapcore/<wbr>snapcraft/releases/tag/2.25</a><br>
><br>
> A great place to collaborate and discuss features, bugs and ideas on<br>
> snapcraft is <a href="mailto:snapcraft@lists.snapcraft.io">snapcraft@lists.snapcraft.io</a> mailing list or on the snapcraft<br>
> channel on Rocket Chat <a href="https://rocket.ubuntu.com/channel/snapcraft" rel="noreferrer" target="_blank">https://rocket.ubuntu.com/<wbr>channel/snapcraft</a><br>
><br>
> To file bugs, please go to <a href="https://bugs.launchpad.net/snapcraft/+filebug" rel="noreferrer" target="_blank">https://bugs.launchpad.net/<wbr>snapcraft/+filebug</a>.<br>
><br>
> Happy snapcrafting!<br>
> -- Sergio and the team<br>
><br>
> --<br>
> Sent using Dekko from my Ubuntu device<br>
><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>
--<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">XiaoGuo, Liu </div></div></div></div>
</div>