<div dir="ltr">Hi Olivier,<div><br></div><div>Sorry, I do not understand what exactly you mean "<span style="font-size:19.2px">no app in the snap is named like</span></div><span style="font-size:19.2px">the snap itself". Could you please elaborate it more?</span><div><span style="font-size:19.2px"><br></span></div><div><span style="font-size:19.2px">Thanks & best regards,</span></div><div><span style="font-size:19.2px">XiaoGuo</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 23, 2017 at 9:50 PM, 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">Hi XiaoGuo,<br>
<br>
Your example happens to work because no app in the snap is named like<br>
the snap itself. For such snaps, using the new desktop feature should<br>
be safe.<br>
<br>
Cheers,<br>
<br>
 Olivier<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Mon, Jan 23, 2017 at 3:48 AM, XiaoGuo Liu <<a href="mailto:xiaoguo.liu@canonical.com">xiaoguo.liu@canonical.com</a>> wrote:<br>
> Hi Olivier,<br>
><br>
> Based on the snapcraft release 2.25, I have made an example at:<br>
><br>
> <a href="https://github.com/liu-xiao-guo/helloworld-desktop" rel="noreferrer" target="_blank">https://github.com/liu-xiao-<wbr>guo/helloworld-desktop</a><br>
><br>
> So, far, I do not have any problems with it. Is there anything I am doing<br>
> wrongly? I can see the launchers in the Ubuntu dash without any problems and<br>
> the apps are launched well.<br>
><br>
> By the way, I have created a blog for it at<br>
> <a href="http://blog.csdn.net/ubuntutouch/article/details/54691673" rel="noreferrer" target="_blank">http://blog.csdn.net/<wbr>ubuntutouch/article/details/<wbr>54691673</a>. It has the<br>
> captured pictures.<br>
><br>
> Thanks & best regards,<br>
> XiaoGuo<br>
><br>
> On Sat, Jan 21, 2017 at 12:09 AM, Olivier Tilloy<br>
> <<a href="mailto:olivier.tilloy@canonical.com">olivier.tilloy@canonical.com</a>> wrote:<br>
>><br>
>> On Thu, Jan 19, 2017 at 3:47 AM, Sergio Schvezov <<a href="mailto:sergiusens@gmail.com">sergiusens@gmail.com</a>><br>
>> wrote:<br>
>> > Hello snapcrafters!<br>
>> ><br>
>> > We are pleased to announce the release of version `2.25` of snapcraft<br>
>> > 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<br>
>> > zesty.<br>
>> > What follows are the full release notes (the prettier version can be<br>
>> > 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,<br>
>> > either with a by-convention path or by using a `part` and installing into an<br>
>> > expected path in the part's install directory.<br>
>> ><br>
>> > Find out more about this feature at<br>
>> > <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<br>
>> > declare a desktop file from your app within an `apps` entry using a path<br>
>> > relative to the `prime` directory pointing to a desktop file, snapcraft will<br>
>> > take care of the rest.<br>
>><br>
>> 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>
>><br>
>><br>
>> > So if your project already has a desktop file, say in<br>
>> > `./prime/usr/share/<wbr>applications/my-app.desktop` all you need to do is<br>
>> > 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<br>
>> > 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<br>
>> > of strings used to build optional dependencies (run `snapcraft help rust`<br>
>> > 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<br>
>> > `rust-revision`.<br>
>> ><br>
>> > ## nodejs plugin<br>
>> > The plugin now correctly downloads dependencies in `package.json` to the<br>
>> > correct location.<br>
>> ><br>
>> > ## godeps plugin<br>
>> > This plugin is now no longer affected by `GOBIN` being set in the<br>
>> > environment.<br>
>> ><br>
>> > ## deb sources<br>
>> > `deb` sources are now being handled with `python-debian` which does<br>
>> > 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`<br>
>> > (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`<br>
>> > keyword is now favored over the `snap` one. When using the `snap` keyword a<br>
>> > 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<br>
>> > with more information and the migration path.<br>
>> ><br>
>> > Plugins that are part of snapcraft that were displaying `DEPRECATED`<br>
>> > 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<br>
>> > comprehensive error when the prerequisites to build a classic confined snap<br>
>> > 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<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>
>> > # Contributions<br>
>> > This release has seen some contributions from outside of the snapcraft<br>
>> > core team, so we want to give a shout out to these folks, here's a team<br>
>> > 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<br>
>> > 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<br>
>> > <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:<br>
>> > <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:<br>
>> <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>
><br>
><br>
> --<br>
> XiaoGuo, Liu<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:<br>
> <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>
--<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>